aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-09-16 16:06:45 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-17 08:42:30 +0200
commit7574cacbd5343bc303ee8333956274716e2444d5 (patch)
treed83251f50475d2e081950507b0e5636fbc0689d7 /libavformat
parente417d80d2853bbeab90eea073ef4fa4a3fcf9d50 (diff)
downloadffmpeg-7574cacbd5343bc303ee8333956274716e2444d5.tar.gz
movenc: create an alternate group for each media type
Partially fixes bug 44.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index c7029ab987..88239c5655 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1216,7 +1216,8 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
avio_wb32(pb, 0); /* reserved */
avio_wb32(pb, 0); /* reserved */
- avio_wb32(pb, 0x0); /* reserved (Layer & Alternate group) */
+ avio_wb16(pb, 0); /* layer */
+ avio_wb16(pb, st->codec->codec_type); /* alternate group) */
/* Volume, only for audio */
if(track->enc->codec_type == AVMEDIA_TYPE_AUDIO)
avio_wb16(pb, 0x0100);