[FFmpeg-cvslog] r13406 - trunk/libavformat/riff.c

michael subversion
Mon May 26 02:05:30 CEST 2008


Author: michael
Date: Mon May 26 02:05:30 2008
New Revision: 13406

Log:
Make ac3 in avi work better.
fixes issue355.


Modified:
   trunk/libavformat/riff.c

Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c	(original)
+++ trunk/libavformat/riff.c	Mon May 26 02:05:30 2008
@@ -257,7 +257,7 @@ int put_wav_header(ByteIOContext *pb, AV
         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) { //




More information about the ffmpeg-cvslog mailing list