]> git.sesse.net Git - ffmpeg/commitdiff
need to dissociate pcm 16bit and 8bit cases
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 24 Mar 2006 16:01:00 +0000 (16:01 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 24 Mar 2006 16:01:00 +0000 (16:01 +0000)
Originally committed as revision 5210 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index 6e6cddd748dd56b7e300aef40697c32f250a9ddd..71bfbff8657bf9ae03ffc7260c07af94ee54fd49 100644 (file)
@@ -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;