diff utils.c @ 10777:c4e157b47af5 libavcodec

Handle more ADPCM codecs in av_get_bits_per_sample(). This removes some special-case code from riff.c. CODEC_ID_ADPCM_G726 is still handled in riff.c as before because it is not guaranteed to be fixed 4 bits per sample.
author daniel
date Wed, 06 Jan 2010 21:51:20 +0000
parents 4546d91de818
children 90f34aa8fe0a
line wrap: on
line diff
--- a/utils.c	Tue Jan 05 16:25:41 2010 +0000
+++ b/utils.c	Wed Jan 06 21:51:20 2010 +0000
@@ -963,6 +963,9 @@
         return 3;
     case CODEC_ID_ADPCM_SBPRO_4:
     case CODEC_ID_ADPCM_CT:
+    case CODEC_ID_ADPCM_WAV:
+    case CODEC_ID_ADPCM_MS:
+    case CODEC_ID_ADPCM_YAMAHA:
         return 4;
     case CODEC_ID_PCM_ALAW:
     case CODEC_ID_PCM_MULAW: