]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
more complete audio stsd v2
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 2 Aug 2008 03:40:13 +0000 (03:40 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 2 Aug 2008 03:40:13 +0000 (03:40 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14505 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mov.c

index f7382431f88d55e7f77d6825c0cb94c8cd55591d..551eca974d074d939318ebb767a11be888efd39f 100644 (file)
@@ -861,10 +861,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
                     st->codec->sample_rate = av_int2dbl(get_be64(pb)); /* float 64 */
                     st->codec->channels = get_be32(pb);
                     get_be32(pb); /* always 0x7F000000 */
-                    get_be32(pb); /* bits per channel if sound is uncompressed */
+                    st->codec->bits_per_sample = get_be32(pb); /* bits per channel if sound is uncompressed */
                     get_be32(pb); /* lcpm format specific flag */
-                    get_be32(pb); /* bytes per audio packet if constant */
-                    get_be32(pb); /* lpcm frames per audio packet if constant */
+                    sc->bytes_per_frame = get_be32(pb); /* bytes per audio packet if constant */
+                    sc->samples_per_frame = get_be32(pb); /* lpcm frames per audio packet if constant */
                 }
             }