[FFmpeg-cvslog] lavf/demux: export codec-level framerate in avformat_find_stream_info()

Anton Khirnov git at videolan.org
Sun May 7 16:52:35 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon May  1 14:03:56 2023 +0200| [6deaf1e40949b1daa2dfe23e9643e1758f52d29c] | committer: Anton Khirnov

lavf/demux: export codec-level framerate in avformat_find_stream_info()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6deaf1e40949b1daa2dfe23e9643e1758f52d29c
---

 libavformat/demux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/demux.c b/libavformat/demux.c
index 45e5f5c4c2..2a32bde7f5 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -2878,6 +2878,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
                     st->r_frame_rate.den = st->time_base.num;
                 }
             }
+            st->codecpar->framerate = avctx->framerate;
             if (sti->display_aspect_ratio.num && sti->display_aspect_ratio.den) {
                 AVRational hw_ratio = { avctx->height, avctx->width };
                 st->sample_aspect_ratio = av_mul_q(sti->display_aspect_ratio,



More information about the ffmpeg-cvslog mailing list