Mercurial > libavformat.hg
changeset 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 |
files | movenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Mon Aug 07 14:09:17 2006 +0000 +++ b/movenc.c Mon Aug 07 14:11:17 2006 +0000 @@ -360,7 +360,7 @@ put_be16(pb, 0); /* Revision level */ put_be32(pb, 0); /* Reserved */ - put_be16(pb, track->enc->channels); /* Number of channels */ + put_be16(pb, track->mode == MODE_MOV ? track->enc->channels : 2); /* Number of channels */ /* TODO: Currently hard-coded to 16-bit, there doesn't seem to be a good way to get number of bits of audio */ put_be16(pb, 0x10); /* Reserved */