]> granicus.if.org Git - handbrake/commitdiff
encx265: fix incorrect input continuity message
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 10 Aug 2016 17:55:02 +0000 (10:55 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 10 Aug 2016 17:56:57 +0000 (10:56 -0700)
Don't emit an error message when initial timestamp of the stream is not
zero.

libhb/encx265.c

index aab791a9a66845d8bc1383fa81183cceffa6498d..eaf131d0b86212e56868673b761a7c5707f9cd55 100644 (file)
@@ -93,6 +93,7 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
     const char * const *profile_names;
 
     pv->job              = job;
+    pv->last_stop        = AV_NOPTS_VALUE;
     pv->chapter_queue    = hb_chapter_queue_init();
     w->private_data      = pv;
 
@@ -474,7 +475,7 @@ static hb_buffer_t* x265_encode(hb_work_object_t *w, hb_buffer_t *in)
         pic_in.sliceType = X265_TYPE_AUTO;
     }
 
-    if (pv->last_stop != in->s.start)
+    if (pv->last_stop != AV_NOPTS_VALUE && pv->last_stop != in->s.start)
     {
         hb_log("encx265 input continuity err: last stop %"PRId64"  start %"PRId64,
                pv->last_stop, in->s.start);