summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-01 03:25:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-01 03:25:04 +0200
commitb27d4fd99736ec3676441934aaf3221f80777211 (patch)
treed322a589a7accdc6018071336ab91be4dc69b20e /libavcodec/utils.c
parent55ea31ab8981716a3ba1d2ae5521e62ff4494791 (diff)
Revert "libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" for DSD codecs."
Requested-by: Ganesh Ajjanagadde <gajjanag@mit.edu> (original patch reviewer) This reverts commit 293e25be615d43c9b611c4b04920ec0d245a7145.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 52bfe014da..5dbd0cf205 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3311,11 +3311,6 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
{
switch (codec_id) {
- case AV_CODEC_ID_DSD_LSBF:
- case AV_CODEC_ID_DSD_MSBF:
- case AV_CODEC_ID_DSD_LSBF_PLANAR:
- case AV_CODEC_ID_DSD_MSBF_PLANAR:
- return 1;
case AV_CODEC_ID_8SVX_EXP:
case AV_CODEC_ID_8SVX_FIB:
case AV_CODEC_ID_ADPCM_CT:
@@ -3326,6 +3321,10 @@ int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
case AV_CODEC_ID_ADPCM_G722:
case AV_CODEC_ID_ADPCM_YAMAHA:
return 4;
+ case AV_CODEC_ID_DSD_LSBF:
+ case AV_CODEC_ID_DSD_MSBF:
+ case AV_CODEC_ID_DSD_LSBF_PLANAR:
+ case AV_CODEC_ID_DSD_MSBF_PLANAR:
case AV_CODEC_ID_PCM_ALAW:
case AV_CODEC_ID_PCM_MULAW:
case AV_CODEC_ID_PCM_S8: