mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
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:
parent
c9cfe8d76b
commit
0c41c2ebd6
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue