mirror of https://git.ffmpeg.org/ffmpeg.git
movenc: byteswap codec_tag in mov_write_ms_tag
based on Alex Converse's "Fix ADPCM MS in mov muxing" patch
This commit is contained in:
parent
f258964217
commit
795ed278e6
|
@ -318,8 +318,8 @@ static int mov_write_ms_tag(ByteIOContext *pb, MOVTrack *track)
|
||||||
{
|
{
|
||||||
int64_t pos = url_ftell(pb);
|
int64_t pos = url_ftell(pb);
|
||||||
put_be32(pb, 0);
|
put_be32(pb, 0);
|
||||||
put_le32(pb, track->tag);
|
put_le32(pb, track->tag); // store it byteswapped
|
||||||
track->enc->codec_tag = track->tag >> 16;
|
track->enc->codec_tag = av_bswap16(track->tag >> 16);
|
||||||
ff_put_wav_header(pb, track->enc);
|
ff_put_wav_header(pb, track->enc);
|
||||||
return updateSize(pb, pos);
|
return updateSize(pb, pos);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue