diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-07 14:11:17 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-07 14:11:17 +0000 |
commit | 86ca5710bb8eae3cf1e88a26e59f16c7f4afd7eb (patch) | |
tree | 6f39ee21f5b7037b4dfacd1e2e6e2484127926ea /libavformat | |
parent | 57ef6acc3944e5c98a39819bdd42d3c6e017914e (diff) | |
download | ffmpeg-86ca5710bb8eae3cf1e88a26e59f16c7f4afd7eb.tar.gz |
mp4, 3gp field is reserved and value is 2
Originally committed as revision 5947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b9c4a1d63b..2f7cb7fe8f 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -360,7 +360,7 @@ 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->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 */ |