[FFmpeg-cvslog] riffenc: fix aac
Michael Niedermayer
git at videolan.org
Mon Aug 13 02:00:29 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug 13 01:41:55 2012 +0200| [ed8d827ad043036bfad16aa96e79438b6e617834] | committer: Michael Niedermayer
riffenc: fix aac
Fixes Ticket1435
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed8d827ad043036bfad16aa96e79438b6e617834
---
libavformat/riff.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 580ac68..2152c0f 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 */
More information about the ffmpeg-cvslog
mailing list