aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/riff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-13 01:41:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-13 01:41:55 +0200
commited8d827ad043036bfad16aa96e79438b6e617834 (patch)
treee546a3c616ee10cedaff60821e34387cb524b346 /libavformat/riff.c
parent5c0d8bc4cea23cfe85c082a03871cf73190813fb (diff)
downloadffmpeg-ed8d827ad043036bfad16aa96e79438b6e617834.tar.gz
riffenc: fix aac
Fixes Ticket1435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 580ac689aa..2152c0fbdb 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -483,6 +483,8 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc)
//blkalign = 144 * enc->bit_rate/enc->sample_rate;
} else if (enc->codec_id == AV_CODEC_ID_AC3) {
blkalign = 3840; //maximum bytes per frame
+ } else if (enc->codec_id == AV_CODEC_ID_AAC) {
+ blkalign = 768 * enc->channels; //maximum bytes per frame
} else if (enc->codec_id == AV_CODEC_ID_G723_1) {
blkalign = 24;
} else if (enc->block_align != 0) { /* specified by the codec */