changeset 3438:fbf61a160154 libavcodec

set proper bits_per_sample value for ADPCM codecs
author aurel
date Sat, 08 Jul 2006 07:14:00 +0000
parents 278ab85e8d31
children 92bf95cf1e32
files utils.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Jul 07 23:54:13 2006 +0000
+++ b/utils.c	Sat Jul 08 07:14:00 2006 +0000
@@ -1306,11 +1306,13 @@
 
 int av_get_bits_per_sample(enum CodecID codec_id){
     switch(codec_id){
-    case CODEC_ID_ADPCM_CT:
     case CODEC_ID_ADPCM_SBPRO_2:
+        return 2;
     case CODEC_ID_ADPCM_SBPRO_3:
+        return 3;
     case CODEC_ID_ADPCM_SBPRO_4:
-        return 0;
+    case CODEC_ID_ADPCM_CT:
+        return 4;
     case CODEC_ID_PCM_ALAW:
     case CODEC_ID_PCM_MULAW:
     case CODEC_ID_PCM_S8: