summaryrefslogtreecommitdiffstats
path: root/libhb/render.c
diff options
context:
space:
mode:
authoreddyg <[email protected]>2007-09-11 06:02:07 +0000
committereddyg <[email protected]>2007-09-11 06:02:07 +0000
commitcf26ca5f77044ec3364edb446635c14b9c9daddc (patch)
tree9d72d3770415ea9fb0cde26a9f3ab52428fd029d /libhb/render.c
parent6866dd773f1cff829538c963e8b7ba85fe700be3 (diff)
Added buffer management and changed fifo sizes. Changed job->subtitle_scan to job->indepth_scan, and fixed memory init bug in denoise.c.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@945 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r--libhb/render.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libhb/render.c b/libhb/render.c
index 5577c2f76..05dcdbbf9 100644
--- a/libhb/render.c
+++ b/libhb/render.c
@@ -160,6 +160,16 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
*buf_out = hb_buffer_init(0);
return HB_WORK_OK;
}
+
+ /*
+ * During the indepth_scan ditch the buffers here before applying filters or attempting to
+ * use the subtitles.
+ */
+ if( job->indepth_scan )
+ {
+ *buf_out = NULL;
+ return HB_WORK_OK;
+ }
/* Push subtitles onto queue just in case we need to delay a frame */
if( in->sub )