[FFmpeg-devel] [PATCH]lavf/riff: Support ambient wav files

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Sep 16 12:47:19 CEST 2015


Hi!

Attached patch allows to decode amb files as requested by Andy Furniss.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/riff.c b/libavformat/riff.c
index be76b0a..9a11958 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -486,5 +486,6 @@ const AVCodecGuid ff_codec_wav_guids[] = {
     { AV_CODEC_ID_ATRAC3P,  { 0xBF, 0xAA, 0x23, 0xE9, 0x58, 0xCB, 0x71, 0x44, 0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62 } },
     { AV_CODEC_ID_EAC3,     { 0xAF, 0x87, 0xFB, 0xA7, 0x02, 0x2D, 0xFB, 0x42, 0xA4, 0xD4, 0x05, 0xCD, 0x93, 0x84, 0x3B, 0xDD } },
     { AV_CODEC_ID_MP2,      { 0x2B, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
+    { AV_CODEC_ID_PCM_S16LE,{ 0x01, 0x00, 0x00, 0x00, 0x21, 0x07, 0xD3, 0x11, 0x86, 0x44, 0xC8, 0xC1, 0xCA, 0x00, 0x00, 0x00 } },
     { AV_CODEC_ID_NONE }
 };


More information about the ffmpeg-devel mailing list