[FFmpeg-devel] [PATCH] lavfi/src_movie: set pkt_timebase
Nicolas George
george at nsup.org
Mon Jan 6 00:12:19 EET 2025
Fix “Could not update timestamps for skipped samples” warning
and associated misfeature.
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/src_movie.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index d2aa572d12..a1b3d026a6 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -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);
--
2.45.2
More information about the ffmpeg-devel
mailing list