Fix DTS and PTS not being passed on through lib API

Fixes "cur_dts is invalid" warning from FFmpeg.
This commit is contained in:
Ari Koivula 2016-10-28 19:05:47 +03:00
parent 0c41c2ebd6
commit d18de19d8a

View file

@ -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);