[Ffmpeg-devel] [PATCH] AAC audio in AVI files

David Conrad davedc_
Tue Aug 8 19:38:32 CEST 2006

My message seems to not have gone through, so I'm resending it. I  
have run into several AVI files which contain AAC audio designated  
with the codec tag 0xff. This patch allows playback of such files  
using ffmpeg. I have verified that the audio of all such files that I  
have play fine with ffplay, including http://samples.mplayerhq.hu/A- 


Index: libavformat/riff.c
--- libavformat/riff.c	(revision 5953)
+++ libavformat/riff.c	(working copy)
@@ -176,6 +176,7 @@
      { CODEC_ID_WMAV1, 0x160 },
      { CODEC_ID_WMAV2, 0x161 },
      { CODEC_ID_AAC, 0x706d },
+    { CODEC_ID_MPEG4AAC, 0xff },
      { CODEC_ID_VORBIS, ('V'<<8)+'o' }, //HACK/FIXME, does vorbis in  
WAV/AVI have an (in)official id?
      { CODEC_ID_SONIC, 0x2048 },
      { CODEC_ID_SONIC_LS, 0x2048 },

More information about the ffmpeg-devel mailing list