comparison movenc.c @ 1236:a2cc205d79f1 libavformat

mp4, 3gp field is reserved and value is 2
author bcoudurier
date Mon, 07 Aug 2006 14:11:17 +0000
parents d88550cf8afe
children fbe88f238d0d
comparison
equal deleted inserted replaced
1235:d88550cf8afe 1236:a2cc205d79f1
358 /* SoundDescription */ 358 /* SoundDescription */
359 put_be16(pb, version); /* Version */ 359 put_be16(pb, version); /* Version */
360 put_be16(pb, 0); /* Revision level */ 360 put_be16(pb, 0); /* Revision level */
361 put_be32(pb, 0); /* Reserved */ 361 put_be32(pb, 0); /* Reserved */
362 362
363 put_be16(pb, track->enc->channels); /* Number of channels */ 363 put_be16(pb, track->mode == MODE_MOV ? track->enc->channels : 2); /* Number of channels */
364 /* TODO: Currently hard-coded to 16-bit, there doesn't seem 364 /* TODO: Currently hard-coded to 16-bit, there doesn't seem
365 to be a good way to get number of bits of audio */ 365 to be a good way to get number of bits of audio */
366 put_be16(pb, 0x10); /* Reserved */ 366 put_be16(pb, 0x10); /* Reserved */
367 367
368 put_be16(pb, vbr ? 0xfffe : 0); /* compression ID */ 368 put_be16(pb, vbr ? 0xfffe : 0); /* compression ID */