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:
parent
2229b74127
commit
0040d7e608
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user