• Daniel Verkamp's avatar
    ff_put_wav_header: add flag to force WAVEFORMATEX · 5e7d21c7
    Daniel Verkamp authored
    Partially undoes commit 2c4e08d8:
    
        riff: always generate a proper WAVEFORMATEX structure in
        ff_put_wav_header
    
    A new flag, FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX, is added to force the
    use of WAVEFORMATEX rather than PCMWAVEFORMAT even for PCM codecs.
    
    This flag is used in the Matroska muxer (the cause of the original
    change) and in the ASF muxer, because the specifications for
    these formats indicate explicitly that WAVEFORMATEX should be used.
    
    Muxers for other formats will return to the original behavior of writing
    PCMWAVEFORMAT when writing a header for raw PCM.
    
    In particular, this causes raw PCM in WAV to generate the canonical
    44-byte header expected by some tools.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    5e7d21c7
Name
Last commit
Last update
..
aiff Loading commit data...
alaw Loading commit data...
asf Loading commit data...
ast Loading commit data...
au Loading commit data...
avi Loading commit data...
bmp Loading commit data...
caf Loading commit data...
dpx Loading commit data...
dv_fmt Loading commit data...
ffm Loading commit data...
flm Loading commit data...
flv_fmt Loading commit data...
gif Loading commit data...
gxf Loading commit data...
ircam Loading commit data...
ismv Loading commit data...
jpg Loading commit data...
mkv Loading commit data...
mmf Loading commit data...
mov Loading commit data...
mpg Loading commit data...
mulaw Loading commit data...
mxf Loading commit data...
mxf_d10 Loading commit data...
nut Loading commit data...
ogg Loading commit data...
pam Loading commit data...
pbmpipe Loading commit data...
pcx Loading commit data...
pgm Loading commit data...
pgmpipe Loading commit data...
pixfmt Loading commit data...
png Loading commit data...
ppm Loading commit data...
ppmpipe Loading commit data...
rm Loading commit data...
rso Loading commit data...
sgi Loading commit data...
smjpeg Loading commit data...
sox Loading commit data...
sunrast Loading commit data...
swf Loading commit data...
tga Loading commit data...
tiff Loading commit data...
ts Loading commit data...
voc Loading commit data...
voc_s16 Loading commit data...
w64 Loading commit data...
wav Loading commit data...
wtv Loading commit data...
xbm Loading commit data...
xwd Loading commit data...
yuv4mpeg Loading commit data...