From c58e6ccc49b6a6007bf64a4666e11c23334b191b Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 15 Nov 2015 16:17:13 -0800 Subject: encx264: only show warning log after first frame --- libhb/encx264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3