Ticket #1843: patchwavpcm.diff

File patchwavpcm.diff, 522 bytes (added by cehoyos, 4 years ago)
  • libavformat/riff.c

    diff --git a/libavformat/riff.c b/libavformat/riff.c
    index 1a5b414..f7d14f4 100644
    a b int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) 
    554554        avio_wl32(pb, 0x00100000); 
    555555        avio_wl32(pb, 0xAA000080); 
    556556        avio_wl32(pb, 0x719B3800); 
     557    } else if (enc->codec_tag == 1 && riff_extradata == riff_extradata_start) { 
     558        hdrsize -= 2; 
    557559    } else { 
    558560        avio_wl16(pb, riff_extradata - riff_extradata_start); /* cbSize */ 
    559561    }