[FFmpeg-devel] [PATCH] lavd/lavfi: set output avg_frame_rate depending on output link framerate

Stefano Sabatini stefasab at gmail.com
Thu Apr 25 15:44:17 CEST 2013


---
 libavdevice/lavfi.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index c1c9cf5..6f2911a 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -278,6 +278,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
             st->codec->time_base  = link->time_base;
             st->codec->width      = link->w;
             st->codec->height     = link->h;
+            st->avg_frame_rate    = link->frame_rate;
             st       ->sample_aspect_ratio =
             st->codec->sample_aspect_ratio = link->sample_aspect_ratio;
             avctx->probesize = FFMAX(avctx->probesize,
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list