Mercurial > libavformat.hg
changeset 994:41b4111a021e libavformat
Support mov stsd atom version 2.
Patch by Baptiste COUDURIER, baptiste <<dot>> coudurier <<at>> smartjog <<dot>> com
author | corey |
---|---|
date | Sat, 04 Mar 2006 01:13:13 +0000 |
parents | 3c027a642915 |
children | c459e0d4b0b9 |
files | mov.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Thu Mar 02 20:44:35 2006 +0000 +++ b/mov.c Sat Mar 04 01:13:13 2006 +0000 @@ -1063,6 +1063,15 @@ get_be32(pb); /* bytes per packet */ get_be32(pb); /* bytes per frame */ get_be32(pb); /* bytes per sample */ + } else if(version==2) { + get_be32(pb); /* sizeof struct only */ + 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 */ + 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 */ } } else { /* other codec type, just skip (rtp, mp4s, tmcd ...) */