From: John Stebbins Date: Wed, 10 Aug 2016 17:55:02 +0000 (-0700) Subject: encx265: fix incorrect input continuity message X-Git-Tag: 1.0.0~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcd2f92dda1e5ddd6f7d34da522f1670cf19f35e;p=handbrake encx265: fix incorrect input continuity message Don't emit an error message when initial timestamp of the stream is not zero. --- diff --git a/libhb/encx265.c b/libhb/encx265.c index aab791a9a..eaf131d0b 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -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);