summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-11-15 16:17:13 -0800
committerJohn Stebbins <[email protected]>2015-11-15 16:17:13 -0800
commitc58e6ccc49b6a6007bf64a4666e11c23334b191b (patch)
tree442c88ca4235ea6b6f8e27f1fb8436fc8d300fbb /libhb/encx264.c
parent7cdced99fcfbb1ac72ce22420e24b2902b3f8ea6 (diff)
encx264: only show warning log after first frame
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c3
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(&param,
@@ -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);