mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Merge commit '0309ddcfb25fd44883bfcdb07509eb4907576b97'
* commit '0309ddcfb25fd44883bfcdb07509eb4907576b97': lavc: handle MP3 in get_audio_frame_duration() Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
b5a42c7f09
@ -1691,6 +1691,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