mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Merge branch 'dts-fix'
This commit is contained in:
commit
98a0d54b70
|
@ -190,6 +190,9 @@ static void* input_read_thread(void* in_args)
|
||||||
goto done;
|
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,
|
bool read_success = yuv_io_read(args->input,
|
||||||
args->opts->config->width,
|
args->opts->config->width,
|
||||||
args->opts->config->height,
|
args->opts->config->height,
|
||||||
|
|
|
@ -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);
|
state->tile->frame->rec = kvz_image_copy_ref(frame);
|
||||||
} else {
|
} else {
|
||||||
state->tile->frame->rec = kvz_image_alloc(state->encoder_control->chroma_format, frame->width, frame->height);
|
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);
|
kvz_videoframe_set_poc(state->tile->frame, state->frame->poc);
|
||||||
|
|
Loading…
Reference in a new issue