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.
This commit is contained in:
Ari Koivula 2016-10-28 19:03:03 +03:00
parent c9cfe8d76b
commit 0c41c2ebd6

View file

@ -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,