mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-30 15:00:29 +00:00
lavc: handle MP3 in get_audio_frame_duration()
This commit is contained in:
parent
6aa4ba7131
commit
0309ddcfb2
@ -1186,6 +1186,9 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
|
||||
if (id == AV_CODEC_ID_BINKAUDIO_DCT)
|
||||
return (480 << (sr / 22050)) / ch;
|
||||
}
|
||||
|
||||
if (id == AV_CODEC_ID_MP3)
|
||||
return sr <= 24000 ? 576 : 1152;
|
||||
}
|
||||
|
||||
if (ba > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user