You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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