Commit 91736025 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: set average frame rate from header

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8bf90562
...@@ -671,6 +671,7 @@ static int avi_read_header(AVFormatContext *s) ...@@ -671,6 +671,7 @@ static int avi_read_header(AVFormatContext *s)
codec_type = AVMEDIA_TYPE_VIDEO; codec_type = AVMEDIA_TYPE_VIDEO;
ast->sample_size = 0; ast->sample_size = 0;
st->avg_frame_rate = av_inv_q(st->time_base);
break; break;
case MKTAG('a', 'u', 'd', 's'): case MKTAG('a', 'u', 'd', 's'):
codec_type = AVMEDIA_TYPE_AUDIO; codec_type = AVMEDIA_TYPE_AUDIO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment