Mercurial > libavformat.hg
changeset 1031:480c84af0f61 libavformat
need to dissociate pcm 16bit and 8bit cases
author | bcoudurier |
---|---|
date | Fri, 24 Mar 2006 16:01:00 +0000 |
parents | 1aabcccb2efa |
children | 58a0e351ef4c |
files | mov.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Fri Mar 24 15:47:44 2006 +0000 +++ b/mov.c Fri Mar 24 16:01:00 2006 +0000 @@ -1077,7 +1077,8 @@ case CODEC_ID_PCM_S16BE: if (st->codec->bits_per_sample == 8) st->codec->codec_id = CODEC_ID_PCM_S8; - /* fall */ + st->codec->bit_rate = st->codec->sample_rate * 8; + break; case CODEC_ID_PCM_U8: if (st->codec->bits_per_sample == 16) st->codec->codec_id = CODEC_ID_PCM_S16BE;