Mercurial > libavformat.hg
comparison mov.c @ 3620:a52f6dd66490 libavformat
more complete audio stsd v2
author | bcoudurier |
---|---|
date | Sat, 02 Aug 2008 03:40:13 +0000 |
parents | bd4b7c8fec83 |
children | 0415fc41780a |
comparison
equal
deleted
inserted
replaced
3619:bd4b7c8fec83 | 3620:a52f6dd66490 |
---|---|
859 } else if(version==2) { | 859 } else if(version==2) { |
860 get_be32(pb); /* sizeof struct only */ | 860 get_be32(pb); /* sizeof struct only */ |
861 st->codec->sample_rate = av_int2dbl(get_be64(pb)); /* float 64 */ | 861 st->codec->sample_rate = av_int2dbl(get_be64(pb)); /* float 64 */ |
862 st->codec->channels = get_be32(pb); | 862 st->codec->channels = get_be32(pb); |
863 get_be32(pb); /* always 0x7F000000 */ | 863 get_be32(pb); /* always 0x7F000000 */ |
864 get_be32(pb); /* bits per channel if sound is uncompressed */ | 864 st->codec->bits_per_sample = get_be32(pb); /* bits per channel if sound is uncompressed */ |
865 get_be32(pb); /* lcpm format specific flag */ | 865 get_be32(pb); /* lcpm format specific flag */ |
866 get_be32(pb); /* bytes per audio packet if constant */ | 866 sc->bytes_per_frame = get_be32(pb); /* bytes per audio packet if constant */ |
867 get_be32(pb); /* lpcm frames per audio packet if constant */ | 867 sc->samples_per_frame = get_be32(pb); /* lpcm frames per audio packet if constant */ |
868 } | 868 } |
869 } | 869 } |
870 | 870 |
871 switch (st->codec->codec_id) { | 871 switch (st->codec->codec_id) { |
872 case CODEC_ID_PCM_S8: | 872 case CODEC_ID_PCM_S8: |