Mercurial > libavcodec.hg
changeset 7475:eaf0ebba81d7 libavcodec
Make avcodec_string() and av_get_bits_per_sample() report the sample size for CODEC_ID_PCM_ZORK
author | pross |
---|---|
date | Mon, 04 Aug 2008 07:40:07 +0000 |
parents | 9ed1ef44127b |
children | 2321e0384521 |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Aug 04 02:41:19 2008 +0000 +++ b/utils.c Mon Aug 04 07:40:07 2008 +0000 @@ -1181,6 +1181,7 @@ case CODEC_ID_PCM_U8: case CODEC_ID_PCM_ALAW: case CODEC_ID_PCM_MULAW: + case CODEC_ID_PCM_ZORK: bitrate = enc->sample_rate * enc->channels * 8; break; default: @@ -1290,6 +1291,7 @@ case CODEC_ID_PCM_MULAW: case CODEC_ID_PCM_S8: case CODEC_ID_PCM_U8: + case CODEC_ID_PCM_ZORK: return 8; case CODEC_ID_PCM_S16BE: case CODEC_ID_PCM_S16LE: