diff options
Diffstat (limited to 'libhb/render.c')
-rw-r--r-- | libhb/render.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libhb/render.c b/libhb/render.c index 24a3d504e..76d0f4f07 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -406,10 +406,18 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in, * Keep the last three frames in our queue, this ensures that we have the last * two always in there should we need to rewrite the durations on them. */ - if( hb_fifo_size( pv->delay_queue ) >= 3 ) + + if( job->vfr ) + { + if( hb_fifo_size( pv->delay_queue ) >= 3 ) + { + *buf_out = hb_fifo_get( pv->delay_queue ); + } + } + else { *buf_out = hb_fifo_get( pv->delay_queue ); - } + } if( *buf_out ) { |