aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-06 14:52:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-06 14:53:21 +0100
commit8afaa03c53d6de7c18c2578bd0d6733c759eff57 (patch)
tree0a35335e8814aab7c9e77c0035a3fd402eebbc86
parentd5999b7f282a5c08f6dc4326c636272b0a4d7c9f (diff)
downloadffmpeg-8afaa03c53d6de7c18c2578bd0d6733c759eff57.tar.gz
avformat/riffenc: move MP3 LSF threshold to the midway point between the 2
No testcase available but this seems more correct Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/riffenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
index c670d303a6..5e858008f5 100644
--- a/libavformat/riffenc.c
+++ b/libavformat/riffenc.c
@@ -105,7 +105,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc, int flags)
if (enc->codec_id == AV_CODEC_ID_MP2) {
blkalign = frame_size;
} else if (enc->codec_id == AV_CODEC_ID_MP3) {
- blkalign = 576 * (enc->sample_rate <= 24000 ? 1 : 2);
+ blkalign = 576 * (enc->sample_rate <= (24000 + 32000)/2 ? 1 : 2);
} else if (enc->codec_id == AV_CODEC_ID_AC3) {
blkalign = 3840; /* maximum bytes per frame */
} else if (enc->codec_id == AV_CODEC_ID_AAC) {