From: jbrjake Date: Mon, 29 Sep 2008 20:25:24 +0000 (+0000) Subject: Wait until 4 frames are stashed in the delay_queue before outputting any frames from... X-Git-Tag: 0.9.3~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59ae524c2bfccb49200587ba924329aaf9523925;p=handbrake 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 --- 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 ); }