summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-24 16:01:00 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-24 16:01:00 +0000
commite1017f2b87cf501800867cbbb7e0be87c907b6f8 (patch)
treed867f20e12b174303368563f71e67356b9e8c4db /libavformat/mov.c
parent67dd33f90efcab52a4730ba5d84faddf7358e9fa (diff)
need to dissociate pcm 16bit and 8bit cases
Originally committed as revision 5210 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6e6cddd748..71bfbff865 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1077,7 +1077,8 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
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;