aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-08-02 03:40:13 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-08-02 03:40:13 +0000
commit9184d53a031a9c061caef90a1542e98a43ca6353 (patch)
treef1a597f22f82b5f723dadb1afe01c07a632d2243 /libavformat/mov.c
parent5ef3ad59f2186021e56720ac95918a62b899ae5c (diff)
downloadffmpeg-9184d53a031a9c061caef90a1542e98a43ca6353.tar.gz
more complete audio stsd v2
Originally committed as revision 14505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index f7382431f8..551eca974d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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 */
}
}