aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-11-25 16:32:47 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-11-25 16:32:47 +0000
commit725d86bfd52fdecb4d24fc6c62201064071f4c82 (patch)
treedb396edbc420ae29b15b217489af047727d7bc3c /libavcodec/utils.c
parent4d4f59d750b5b65cb37bc2242355ea3e41d7667c (diff)
downloadffmpeg-725d86bfd52fdecb4d24fc6c62201064071f4c82.tar.gz
add pcm_s16le_planar support for electronicarts files
Originally committed as revision 11092 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 af414c0096..8155a0dbbe 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1189,6 +1189,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
break;
case CODEC_ID_PCM_S16LE:
case CODEC_ID_PCM_S16BE:
+ case CODEC_ID_PCM_S16LE_PLANAR:
case CODEC_ID_PCM_U16LE:
case CODEC_ID_PCM_U16BE:
bitrate = enc->sample_rate * enc->channels * 16;
@@ -1314,6 +1315,7 @@ int av_get_bits_per_sample(enum CodecID codec_id){
return 8;
case CODEC_ID_PCM_S16BE:
case CODEC_ID_PCM_S16LE:
+ case CODEC_ID_PCM_S16LE_PLANAR:
case CODEC_ID_PCM_U16BE:
case CODEC_ID_PCM_U16LE:
return 16;