diff options
author | Peter Ross <pross@xvid.org> | 2008-08-19 10:43:47 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2008-08-19 10:43:47 +0000 |
commit | 143a5d6f1fec1d2ba1ceedf6cf3943af92c56500 (patch) | |
tree | 61e9252d546aacabf18ed2e50046ddbe67e40861 /libavcodec/utils.c | |
parent | e06b00f3b610ae86fdd4e7e95478bb06c2a4021d (diff) | |
download | ffmpeg-143a5d6f1fec1d2ba1ceedf6cf3943af92c56500.tar.gz |
Add F64BE, F64LE and F64BE PCM codecs.
Originally committed as revision 14833 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 2d1156c82b..39347c8bc2 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1158,11 +1158,16 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) /* for PCM codecs, compute bitrate directly */ switch(enc->codec_id) { + case CODEC_ID_PCM_F64BE: + case CODEC_ID_PCM_F64LE: + bitrate = enc->sample_rate * enc->channels * 64; + break; case CODEC_ID_PCM_S32LE: case CODEC_ID_PCM_S32BE: case CODEC_ID_PCM_U32LE: case CODEC_ID_PCM_U32BE: case CODEC_ID_PCM_F32BE: + case CODEC_ID_PCM_F32LE: bitrate = enc->sample_rate * enc->channels * 32; break; case CODEC_ID_PCM_S24LE: @@ -1312,7 +1317,11 @@ int av_get_bits_per_sample(enum CodecID codec_id){ case CODEC_ID_PCM_U32BE: case CODEC_ID_PCM_U32LE: case CODEC_ID_PCM_F32BE: + case CODEC_ID_PCM_F32LE: return 32; + case CODEC_ID_PCM_F64BE: + case CODEC_ID_PCM_F64LE: + return 64; default: return 0; } |