diff options
author | jbrjake <[email protected]> | 2008-09-29 20:25:24 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-09-29 20:25:24 +0000 |
commit | 59ae524c2bfccb49200587ba924329aaf9523925 (patch) | |
tree | 11a796609e0e759ae9e3e28d7fec7bda2cfd9e80 /libhb/render.c | |
parent | 771a63d3a5f57b7a55cd24da3aa51ac84f5b3a20 (diff) |
Wait until 4 frames are stashed in the delay_queue before outputting any frames from render when using VFR detelecine. With only 3, the array storing previous time stamp isn't full when the first frame's outputted, throwing off AV sync.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1787 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r-- | libhb/render.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libhb/render.c b/libhb/render.c index 1989199fb..7900ba2ae 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -311,7 +311,6 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in, /* Pop the frame's subtitle and dispose of it. */ hb_buffer_t * subtitles = hb_fifo_get( pv->subtitle_queue ); hb_buffer_close( &subtitles ); - buf_tmp_in = NULL; break; } @@ -413,7 +412,7 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in, if( job->vfr ) { - if( hb_fifo_size( pv->delay_queue ) >= 3 ) + if( hb_fifo_size( pv->delay_queue ) >= 4 ) { *buf_out = hb_fifo_get( pv->delay_queue ); } |