Justin Ruggles
272fcc32bb
dca: handle errors from dca_decode_block()
...
Return error if core block decoding fails.
Do not enable XCh if XCh extension block decoding fails.
13 years ago
Justin Ruggles
aae6eead6a
dca: return error if the frame header is invalid
13 years ago
Justin Ruggles
f44059d260
dca: return proper error codes instead of -1
13 years ago
Kostya Shishkov
46e1af3b0f
utvideo: handle empty Huffman trees
...
If the frame is filled with the same colour, encoder may produce no data
and the fill value is indicated by zero code length (the rest of symbols
will have 0xFF for code length, meaning invalid). So such Huffman trees
should be treated specially.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Justin Ruggles
425a843505
binkaudio: change short to int16_t
13 years ago
Justin Ruggles
4f4e19480a
binkaudio: only decode one block at a time.
...
This prevents truncating output due to an output buffer that is too small for
all blocks. There is no limit on the number of blocks in a packet.
13 years ago
Justin Ruggles
eaddd29e00
binkaudio: store interleaved overlap samples in BinkAudioContext.
...
This fixes the requirement for the buffer size to be larger than the number of
samples actually decoded.
13 years ago
Justin Ruggles
9f48039a37
binkaudio: pre-calculate quantization factors
13 years ago
Justin Ruggles
101ef19ef4
binkaudio: add some buffer overread checks.
...
This stops decoding before overreads instead of after.
13 years ago
Justin Ruggles
2073224697
atrac3: support float or int16 output using request_sample_fmt
13 years ago
Justin Ruggles
a047851329
atrac3: add CODEC_CAP_SUBFRAMES capability
...
the decoder can handle multiple frames in a packet
13 years ago
Justin Ruggles
8f98577d4d
atrac3: return appropriate error codes instead of -1
13 years ago
Justin Ruggles
47b617021d
atrac3: make sure all memory is freed on init failure
13 years ago
Justin Ruggles
c91613857d
atrac3: add a couple macro constants
13 years ago
Justin Ruggles
1fead73d7b
atrac3: return error if packet is too small
13 years ago
Justin Ruggles
7e4881a2d0
atrac3: check output buffer size before decoding
13 years ago
Justin Ruggles
6ba7f78bbb
atrac3: use separate pointers for each channel in decodeFrame()
13 years ago
Justin Ruggles
5e76b8bb76
atrac3: use optimized float_interleave() function for stereo interleaving
13 years ago
Justin Ruggles
8af33cb38a
atrac3: decode mono directly to the output buffer
13 years ago
Justin Ruggles
c4a6fde33f
atrac3: decode output to float samples instead of converting to s16
13 years ago
Justin Ruggles
f20dd574f1
atrac1: return appropriate error codes instead of -1
13 years ago
Justin Ruggles
6dc7dd7af4
atrac1: check for ff_mdct_init() failure
13 years ago
Justin Ruggles
21dcecc310
atrac1: use optimized float_interleave() function for stereo interleaving
13 years ago
Justin Ruggles
96b5702efe
atrac1: fix a typo
13 years ago
Justin Ruggles
bff5b2c1ca
atrac1: validate number of channels
13 years ago
Justin Ruggles
9a35ff3841
atrac1: decode mono audio directly to output buffer
...
For stereo we need to use intermediate planar buffers, but mono does not need
to be deinterleaved so the output buffer can be used directly.
13 years ago
Justin Ruggles
33684b9c12
atrac1: check output buffer size before decoding
13 years ago
Justin Ruggles
5c353eb8e3
cook: return AVERROR_PATCHWELCOME instead of ENOTSUP
...
ENOTSUP is not defined on some systems
13 years ago
Justin Ruggles
e34c6c9708
cook: check output buffer size before decoding
13 years ago
Justin Ruggles
6631294c26
cook: do not needlessly set *data_size to 0
13 years ago
Justin Ruggles
b277ebd508
cook: remove pointless return statements
13 years ago
Justin Ruggles
c9c841e231
cook: simplify decouple_info()
13 years ago
Justin Ruggles
f193c96f49
cook: return appropriate error codes instead of -1
13 years ago
Justin Ruggles
e694831f9d
cook: avoid hardcoded sizes in sizeof()
13 years ago
Justin Ruggles
776e9815a5
cook: remove unneeded #includes
13 years ago
Justin Ruggles
c25df22365
cook: output float samples instead of converting to int16
13 years ago
Kostya Shishkov
9a173575fd
utvideo: account for coupled lines in YUV420 format
...
Luma slices in YUV420 colourspace should have height in multiple of two since
they have the same line of chrominance data corresponding to pair of them.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Ronald S. Bultje
8370e426e4
vp3: fix oob read for negative tokens and memleaks on error.
13 years ago
Ronald S. Bultje
bfa0f96586
vp8: fix overflow in segmentation map caching.
13 years ago
Anton Mitrofanov
640d5f1c80
Fix decoding of lossless 4:2:2 H.264
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Anton Mitrofanov
fdb5314ea7
Fix decoding of lossless 10-bit 4:4:4 H.264
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Alex Converse
77b5c82b49
isom: Add MPEG4SYSTEMS dummy object type indication.
13 years ago
Michael Niedermayer
bc2dd36740
aacdec: allow output reconfiguration on channel changes
...
Locking the decoder against channel config changes in
parse_adts_frame_header() seems to be unnecessary and
streams with channel config changes are reported.
The sample in http://roundup.libav.org/issue999 still works.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Justin Ruggles
f3db0f7403
nellymoserenc: take float input samples instead of int16
...
This avoids having to convert all input data from int16 to float, which is used
internally for encoding.
13 years ago
Justin Ruggles
77c8ef9a36
nellymoserdec: use dsp functions for overlap and windowing
13 years ago
Justin Ruggles
8c9581f052
nellymoserdec: do not fail if there is extra data in the packet
...
instead just print a warning
13 years ago
Justin Ruggles
0aaa85dbed
nellymoserdec: fail if output buffer is too small
...
avoids silently truncating the output
13 years ago
Justin Ruggles
f19305fe93
nellymoserdec: remove pointless buffer size check.
13 years ago
Michael Niedermayer
8fa97302e0
snow: do not draw_edge if emu_edge is set
...
Fix segfault on emu edge, to reproduce
make fate-vsynth1-snow
avplay -flags emu_edge tests/data/vsynth1/snow.avi
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Justin Ruggles
813907d424
wmavoice: move output buffer size check to synth_superframe().
...
this allows for checking against the actual output size instead of max size.
13 years ago