avformat/avidec: set average frame rate from header
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 1 May 2014 03:40:00 +0000 (05:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 1 May 2014 03:40:00 +0000 (05:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c

index 91b9c89..0db9f32 100644 (file)
@@ -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;