From 0c41c2ebd696f2770d39421f4bc57673e7d7441b Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Fri, 28 Oct 2016 19:03:03 +0300 Subject: [PATCH] Make CLI set PTS for each input picture This value is not represented in the HEVC bitstream, which is why it was not set previously. FFmpeg sets and needs it however, so make the CLI set it as well to make sure we handle it correctly. --- src/encmain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/encmain.c b/src/encmain.c index 7422a1b2..3c2b750c 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -190,6 +190,9 @@ static void* input_read_thread(void* in_args) goto done; } + // Set PTS to make sure we pass it on correctly. + frame_in->pts = frames_read; + bool read_success = yuv_io_read(args->input, args->opts->config->width, args->opts->config->height,