# HG changeset patch # User daniel # Date 1262814680 0 # Node ID c4e157b47af5bb36b0217eefeb3e3166e3e9aac7 # Parent 816067b00019478d1f1f7467d853ce03c4a6b8d5 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. diff -r 816067b00019 -r c4e157b47af5 utils.c --- 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: