You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/avidec: set average frame rate from header
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user