diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-26 00:05:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-26 00:05:30 +0000 |
commit | c8b9377d1573388f1c8c68acb1a640ec2e341b91 (patch) | |
tree | be355727d3d57136da89435ef1c7a02cba71f5f4 | |
parent | fa3b98182d711f7735da6e820f90fbcf96cae4d7 (diff) | |
download | ffmpeg-c8b9377d1573388f1c8c68acb1a640ec2e341b91.tar.gz |
Make ac3 in avi work better.
fixes issue355.
Originally committed as revision 13406 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/riff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index 322e8131ff..43e2c36f44 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -257,7 +257,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) av_log(enc, AV_LOG_WARNING, "requested bits_per_sample (%d) and actually stored (%d) differ\n", enc->bits_per_sample, bps); } - if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) { + if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS || enc->codec_id == CODEC_ID_AC3) { blkalign = enc->frame_size; //this is wrong, but it seems many demuxers do not work if this is set correctly //blkalign = 144 * enc->bit_rate/enc->sample_rate; } else if (enc->codec_id == CODEC_ID_ADPCM_G726) { // |