diff options
author | John Stebbins <[email protected]> | 2015-11-15 16:17:13 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-11-15 16:17:13 -0800 |
commit | c58e6ccc49b6a6007bf64a4666e11c23334b191b (patch) | |
tree | 442c88ca4235ea6b6f8e27f1fb8436fc8d300fbb | |
parent | 7cdced99fcfbb1ac72ce22420e24b2902b3f8ea6 (diff) |
encx264: only show warning log after first frame
-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); |