[FFmpeg-cvslog] avformat/avidec: set average frame rate from header
Michael Niedermayer
git at videolan.org
Thu May 1 06:16:29 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 1 05:40:00 2014 +0200| [91736025b2807995e29bd0661807c1c84f515fef] | committer: Michael Niedermayer
avformat/avidec: set average frame rate from header
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91736025b2807995e29bd0661807c1c84f515fef
---
libavformat/avidec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 91b9c89..0db9f32 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -671,6 +671,7 @@ static int avi_read_header(AVFormatContext *s)
codec_type = AVMEDIA_TYPE_VIDEO;
ast->sample_size = 0;
+ st->avg_frame_rate = av_inv_q(st->time_base);
break;
case MKTAG('a', 'u', 'd', 's'):
codec_type = AVMEDIA_TYPE_AUDIO;
More information about the ffmpeg-cvslog
mailing list