aboutsummaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-05-01 05:40:00 +0200
committerMichael Niedermayer2014-05-01 05:40:00 +0200
commit91736025b2807995e29bd0661807c1c84f515fef (patch)
tree82017c886857e861c421d7e2da18b2dcc48fa2e9 /libavformat/avidec.c
parent8bf90562f6cb0f723d5935de1eb4c785037807f9 (diff)
avformat/avidec: set average frame rate from header
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 91b9c89925..0db9f32ef9 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;