mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix DTS and PTS not being passed on through lib API
Fixes "cur_dts is invalid" warning from FFmpeg.
This commit is contained in:
parent
0c41c2ebd6
commit
d18de19d8a
|
@ -823,6 +823,8 @@ static void encoder_set_source_picture(encoder_state_t * const state, kvz_pictur
|
|||
state->tile->frame->rec = kvz_image_copy_ref(frame);
|
||||
} else {
|
||||
state->tile->frame->rec = kvz_image_alloc(state->encoder_control->chroma_format, frame->width, frame->height);
|
||||
state->tile->frame->rec->dts = frame->dts;
|
||||
state->tile->frame->rec->pts = frame->pts;
|
||||
}
|
||||
|
||||
kvz_videoframe_set_poc(state->tile->frame, state->frame->poc);
|
||||
|
|
Loading…
Reference in a new issue