Browse Source

riffenc: fix aac

Fixes Ticket1435

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
ed8d827ad0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/riff.c

+ 2
- 0
libavformat/riff.c View File

@@ -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 */


Loading…
Cancel
Save