mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
lavfi/src_movie: set pkt_timebase
Fix “Could not update timestamps for skipped samples” warning and associated misfeature.
This commit is contained in:
@@ -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);
|
ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
st->codec_ctx->pkt_timebase = st->st->time_base;
|
||||||
|
|
||||||
if (!dec_threads)
|
if (!dec_threads)
|
||||||
dec_threads = ff_filter_get_nb_threads(ctx);
|
dec_threads = ff_filter_get_nb_threads(ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user