changeset 3620:a52f6dd66490 libavformat

more complete audio stsd v2
author bcoudurier
date Sat, 02 Aug 2008 03:40:13 +0000
parents bd4b7c8fec83
children 0415fc41780a
files mov.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Sat Aug 02 03:35:43 2008 +0000
+++ b/mov.c	Sat Aug 02 03:40:13 2008 +0000
@@ -861,10 +861,10 @@
                     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 */
                 }
             }