Revision 795ed278

View differences:

libavformat/movenc.c
318 318
{
319 319
    int64_t pos = url_ftell(pb);
320 320
    put_be32(pb, 0);
321
    put_le32(pb, track->tag);
322
    track->enc->codec_tag = track->tag >> 16;
321
    put_le32(pb, track->tag); // store it byteswapped
322
    track->enc->codec_tag = av_bswap16(track->tag >> 16);
323 323
    ff_put_wav_header(pb, track->enc);
324 324
    return updateSize(pb, pos);
325 325
}

Also available in: Unified diff