1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2025-04-19 02:04:19 +03:00

lavfi/src_movie: set pkt_timebase

Fix “Could not update timestamps for skipped samples” warning
and associated misfeature.
This commit is contained in:
Nicolas George 2025-01-05 22:59:44 +01:00
parent 2229b74127
commit 0040d7e608

View File

@ -227,6 +227,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st, int dec_threads)
ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar);
if (ret < 0)
return ret;
st->codec_ctx->pkt_timebase = st->st->time_base;
if (!dec_threads)
dec_threads = ff_filter_get_nb_threads(ctx);