mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avformat/avidec: set average frame rate from header
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8bf90562f6
commit
91736025b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user