comparison utils.c @ 3435:ffa9e863f3be libavcodec

simplify the voc demuxer using av_get_bits_per_sample()
author aurel
date Fri, 07 Jul 2006 22:42:36 +0000
parents e1906b2f1daf
children fbf61a160154
comparison
equal deleted inserted replaced
3434:d42ab8824434 3435:ffa9e863f3be
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_CT:
1310 case CODEC_ID_ADPCM_SBPRO_2:
1311 case CODEC_ID_ADPCM_SBPRO_3:
1312 case CODEC_ID_ADPCM_SBPRO_4:
1313 return 0;
1309 case CODEC_ID_PCM_ALAW: 1314 case CODEC_ID_PCM_ALAW:
1310 case CODEC_ID_PCM_MULAW: 1315 case CODEC_ID_PCM_MULAW:
1311 case CODEC_ID_PCM_S8: 1316 case CODEC_ID_PCM_S8:
1312 case CODEC_ID_PCM_U8: 1317 case CODEC_ID_PCM_U8:
1313 return 8; 1318 return 8;