Mercurial > libavcodec.hg
comparison utils.c @ 3438:fbf61a160154 libavcodec
set proper bits_per_sample value for ADPCM codecs
author | aurel |
---|---|
date | Sat, 08 Jul 2006 07:14:00 +0000 |
parents | ffa9e863f3be |
children | 5d133e59ecf2 |
comparison
equal
deleted
inserted
replaced
3437:278ab85e8d31 | 3438:fbf61a160154 |
---|---|
1304 } | 1304 } |
1305 } | 1305 } |
1306 | 1306 |
1307 int av_get_bits_per_sample(enum CodecID codec_id){ | 1307 int av_get_bits_per_sample(enum CodecID codec_id){ |
1308 switch(codec_id){ | 1308 switch(codec_id){ |
1309 case CODEC_ID_ADPCM_SBPRO_2: | |
1310 return 2; | |
1311 case CODEC_ID_ADPCM_SBPRO_3: | |
1312 return 3; | |
1313 case CODEC_ID_ADPCM_SBPRO_4: | |
1309 case CODEC_ID_ADPCM_CT: | 1314 case CODEC_ID_ADPCM_CT: |
1310 case CODEC_ID_ADPCM_SBPRO_2: | 1315 return 4; |
1311 case CODEC_ID_ADPCM_SBPRO_3: | |
1312 case CODEC_ID_ADPCM_SBPRO_4: | |
1313 return 0; | |
1314 case CODEC_ID_PCM_ALAW: | 1316 case CODEC_ID_PCM_ALAW: |
1315 case CODEC_ID_PCM_MULAW: | 1317 case CODEC_ID_PCM_MULAW: |
1316 case CODEC_ID_PCM_S8: | 1318 case CODEC_ID_PCM_S8: |
1317 case CODEC_ID_PCM_U8: | 1319 case CODEC_ID_PCM_U8: |
1318 return 8; | 1320 return 8; |