[FFmpeg-cvslog] lavfi/src_movie: set pkt_timebase
Nicolas George
git at videolan.org
Tue Apr 15 16:58:43 EEST 2025
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Sun Jan 5 22:59:44 2025 +0100| [0040d7e60896f34023d5e1306fd5fa1e6f453ade] | committer: Nicolas George
lavfi/src_movie: set pkt_timebase
Fix “Could not update timestamps for skipped samples” warning
and associated misfeature.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0040d7e60896f34023d5e1306fd5fa1e6f453ade
---
libavfilter/src_movie.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index ac5e082798..adb21e019e 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);
More information about the ffmpeg-cvslog
mailing list