diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-09-16 16:06:45 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-17 08:42:30 +0200 |
commit | 7574cacbd5343bc303ee8333956274716e2444d5 (patch) | |
tree | d83251f50475d2e081950507b0e5636fbc0689d7 /libavformat/movenc.c | |
parent | e417d80d2853bbeab90eea073ef4fa4a3fcf9d50 (diff) | |
download | ffmpeg-7574cacbd5343bc303ee8333956274716e2444d5.tar.gz |
movenc: create an alternate group for each media type
Partially fixes bug 44.
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 3 |
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); |