summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-07-26 07:08:15 +0000
committerPeter Ross <pross@xvid.org>2008-07-26 07:08:15 +0000
commitaa29709ec8f42616ccc6ef0fda95a1a134c21ca5 (patch)
treec6155ff3cc6ff0a02feaf79e6dd25adf1af44183 /libavcodec/utils.c
parentfef744d4042403fdecb436e9c72279624d21200a (diff)
add CODEC_ID_PCM_F32BE (32-bit floating point PCM big endian decoder)
Originally committed as revision 14409 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 3fb33d6f73..6af208dd52 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1155,6 +1155,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
case CODEC_ID_PCM_S32BE:
case CODEC_ID_PCM_U32LE:
case CODEC_ID_PCM_U32BE:
+ case CODEC_ID_PCM_F32BE:
bitrate = enc->sample_rate * enc->channels * 32;
break;
case CODEC_ID_PCM_S24LE:
@@ -1301,6 +1302,7 @@ int av_get_bits_per_sample(enum CodecID codec_id){
case CODEC_ID_PCM_S32LE:
case CODEC_ID_PCM_U32BE:
case CODEC_ID_PCM_U32LE:
+ case CODEC_ID_PCM_F32BE:
return 32;
default:
return 0;