diff options
author | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-01-27 17:26:20 +0100 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-01-28 01:06:57 +0100 |
commit | 795ed278e6d702ad841c3043e2b878afc6f599f4 (patch) | |
tree | 371e64365e8a795e26dcdf0968a428ebb6911894 /libavformat/movenc.c | |
parent | f2589642172d284a67e5bbd6c11c477a2aacda88 (diff) | |
download | ffmpeg-streaming-795ed278e6d702ad841c3043e2b878afc6f599f4.zip ffmpeg-streaming-795ed278e6d702ad841c3043e2b878afc6f599f4.tar.gz |
movenc: byteswap codec_tag in mov_write_ms_tag
based on Alex Converse's "Fix ADPCM MS in mov muxing" patch
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 6061701..0949d29 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -318,8 +318,8 @@ static int mov_write_ms_tag(ByteIOContext *pb, MOVTrack *track) { int64_t pos = url_ftell(pb); put_be32(pb, 0); - put_le32(pb, track->tag); - track->enc->codec_tag = track->tag >> 16; + put_le32(pb, track->tag); // store it byteswapped + track->enc->codec_tag = av_bswap16(track->tag >> 16); ff_put_wav_header(pb, track->enc); return updateSize(pb, pos); } |