indention
Originally committed as revision 6886 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
152e9a43f2
commit
80c5b9a161
@ -953,21 +953,21 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
||||
//Read QT version 1 fields. In version 0 theese dont exist
|
||||
dprintf("version =%d, isom =%d\n",version,c->isom);
|
||||
if(!c->isom) {
|
||||
if(version==1) {
|
||||
sc->sample_size_v1.den = get_be32(pb); /* samples per packet */
|
||||
get_be32(pb); /* bytes per packet */
|
||||
sc->sample_size_v1.num = 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 */
|
||||
}
|
||||
if(version==1) {
|
||||
sc->sample_size_v1.den = get_be32(pb); /* samples per packet */
|
||||
get_be32(pb); /* bytes per packet */
|
||||
sc->sample_size_v1.num = 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 */
|
||||
}
|
||||
}
|
||||
|
||||
bits_per_sample = av_get_bits_per_sample(st->codec->codec_id);
|
||||
|
Loading…
Reference in New Issue
Block a user