Commit 2260499c authored by Baptiste Coudurier's avatar Baptiste Coudurier

deobfuscate, clearly split mov case

Originally committed as revision 8212 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 56c70e1d
......@@ -341,11 +341,16 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
put_be16(pb, 0); /* Revision level */
put_be32(pb, 0); /* Reserved */
put_be16(pb, track->mode == MODE_MOV ? track->enc->channels : 2); /* Number of channels */
/* FIXME 8 bit for 'raw ' in mov */
put_be16(pb, 16); /* Reserved */
if (track->mode == MODE_MOV) {
put_be16(pb, track->enc->channels);
put_be16(pb, 16); /* FIXME 8 bit for 'raw ' in mov */
put_be16(pb, track->audio_vbr ? -2 : 0); /* compression ID */
} else { /* reserved for mp4/3gp */
put_be16(pb, 2);
put_be16(pb, 16);
put_be16(pb, 0);
}
put_be16(pb, track->mode == MODE_MOV && track->audio_vbr ? -2 : 0); /* compression ID */
put_be16(pb, 0); /* packet size (= 0) */
put_be16(pb, track->timescale); /* Time scale */
put_be16(pb, 0); /* Reserved */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment