Carl Eugen Hoyos
2608f11863
lavf/wav: Print an error if files >4G are written.
...
Additionally, don't write an incorrect shorter size for such files.
Fixes part of ticket #4543 .
10 years ago
Michael Niedermayer
004564c930
avformat/wavenc: Check umid length
...
Fixes potential out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ecb4ae7879
avformat/wavenc: fix string length variable types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
f45758d3ee
avformat/wavenc: Change enum to int, which is accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
308429e124
avformat/wavenc: check return value of strftime()
...
Fixes CID1257006
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
76886589ee
avformat/wavenc: Use localtime_r() for thread saftey
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
6779bf3f0f
avformat/wavenc: use av_mallocz_array()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Michael Niedermayer
501158c682
avformat/wavenc: simplify malloc failure checking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
3bd0221bc1
avformat/wavenc: more specific error return for "Writing 16 bit peak for 8 bit audio"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
d34d3304a8
avformat/wavenc: do not hardcode array size in memset and other functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2e1e10a6bb
avformat/wavenc: use the bitexact flag from avformat instead of the one from avcodec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Georg Lippitsch
fd504f7c6f
Peak Envelope Chunk encoder: Indent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Georg Lippitsch
e3b03da772
EBU Tech 3285 - Supplement 3 - Peak Envelope Chunk encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
d246231e47
wavenc: use codec descriptors to get the codec name
...
Also, return a proper error code.
11 years ago
Carl Eugen Hoyos
c2b0ce70ad
Initialize riff and wav size fields to -1 instead of 0.
...
WMP doess not play the output files if the fields are
set to 0 and not overwritten (using pipe output).
Fixes ticket #3346 .
11 years ago
Daniel Verkamp
5e7d21c7ad
ff_put_wav_header: add flag to force WAVEFORMATEX
...
Partially undoes commit 2c4e08d89327595f7f4be57dda4b3775e1198d5e:
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: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Nicolas George
eeb975f5cd
lavf/wavenc: check for a single stream.
...
Fix trac ticket #3110 .
11 years ago
Daniel Verkamp
5dd78ef34e
WAV muxer: reindent
12 years ago
Daniel Verkamp
1ecce266fa
WAV muxer: add RF64 support
12 years ago
Paul B Mahol
3174137d41
w64: fact guid support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
9a74282644
Sony Wave64 muxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
2fe0094e0b
wavenc: write fact chunk sample count at the correct file position
...
Fixes curruption of metadata in the INFO chunk.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years ago
Michael Niedermayer
f7a9a99661
wavenc: fix curruption of metadata
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
31c54711cc
lavf: split wav muxer and demuxer into separate files.
12 years ago