summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-08-10 10:55:02 -0700
committerJohn Stebbins <[email protected]>2016-08-10 10:56:57 -0700
commitdcd2f92dda1e5ddd6f7d34da522f1670cf19f35e (patch)
treeb6557ecf948bd470b4cca76f01a113a7dd054830 /libhb/encx265.c
parent5b12d777bb6a2451968e09a7ce8b09e5db5b0262 (diff)
encx265: fix incorrect input continuity message
Don't emit an error message when initial timestamp of the stream is not zero.
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c3
1 files changed, 2 insertions, 1 deletions
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);