diff riff.c @ 2292:f54b2020d564 libavformat

support silly PCM variant used by zork nemesis fixes audio decoding of T000A11C.AVI
author michael
date Mon, 30 Jul 2007 02:05:16 +0000
parents 8b2ad7bc2e4b
children c226029c8df4
line wrap: on
line diff
--- a/riff.c	Sat Jul 28 18:05:11 2007 +0000
+++ b/riff.c	Mon Jul 30 02:05:16 2007 +0000
@@ -415,6 +415,8 @@
         id = CODEC_ID_PCM_S24LE;
     if (id == CODEC_ID_PCM_S16LE && bps == 32)
         id = CODEC_ID_PCM_S32LE;
+    if (id == CODEC_ID_ADPCM_IMA_WAV && bps == 8)
+        id = CODEC_ID_PCM_ZORK;
     return id;
 }
 #endif // CONFIG_DEMUXERS