diff options
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r-- | libhb/encx264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index aa07a4dab..b30f53831 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -317,6 +317,7 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) pv->job = job; pv->next_chapter_pts = AV_NOPTS_VALUE; + pv->last_stop = AV_NOPTS_VALUE; pv->delayed_chapters = hb_list_init(); if (pv->api->param_default_preset(¶m, @@ -884,7 +885,7 @@ static hb_buffer_t *x264_encode( hb_work_object_t *w, hb_buffer_t *in ) * frame stream with the current frame's start time equal to the * previous frame's stop time. */ - if( pv->last_stop != in->s.start ) + if (pv->last_stop != AV_NOPTS_VALUE && pv->last_stop != in->s.start) { hb_log("encx264 input continuity err: last stop %"PRId64" start %"PRId64, pv->last_stop, in->s.start); |