Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Mans Rullgard
a812ed003f
adpcm-thp: fix invalid array indexing
...
Indexing outside array limits is invalid and breaks with gcc 4.8.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Paul B Mahol
55abaa58e5
westwood_vqa: fix SND0 chunk handling
...
Version from vqa header does not dictate which sound chunks may
appear in file.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Ronald S. Bultje
1744ab9e46
adpcm: convert adpcm_thp to bytestream2.
13 years ago
Ronald S. Bultje
72eda7786d
adpcm: convert adpcm_yamaha to bytestream2.
13 years ago
Ronald S. Bultje
f184735a27
adpcm: convert adpcm_swf to bytestream2.
13 years ago
Ronald S. Bultje
8afe2f9002
adpcm: convert adpcm_sbpro to bytestream2.
13 years ago
Ronald S. Bultje
834c81f4c5
adpcm: convert adpcm_ct to bytestream2.
13 years ago
Ronald S. Bultje
b3084e29e6
adpcm: convert adpcm_ima_amv/smjpeg to bytestream2.
13 years ago
Ronald S. Bultje
22c48d399d
adpcm: convert adpcm_ea_xas to bytestream2.
13 years ago
Ronald S. Bultje
edd9555537
adpcm: convert adpcm_ea_r1/2/3 to bytestream2.
13 years ago
Ronald S. Bultje
e60d09918c
adpcm: convert ea_maxis_xa to bytestream2.
13 years ago
Ronald S. Bultje
4a876eba8d
adpcm: convert adpcm_ea to bytestream2.
13 years ago
Ronald S. Bultje
524af484ed
adpcm convert adpcm_ima_ea_sead to bytestream2.
13 years ago
Ronald S. Bultje
8f2ed09289
adpcm: convert adpcm_ima_ea_eacs to bytestream2.
13 years ago
Ronald S. Bultje
159831cc09
adpcm: convert adpcm_xa to bytestream2.
13 years ago
Ronald S. Bultje
16b7a5e241
adpcm: convert ima_ws to bytestream2.
13 years ago
Ronald S. Bultje
74d7ac95fb
adpcm: convert adpcm_ima_apc to bytestream2.
13 years ago
Ronald S. Bultje
9721901440
adpcm: convert adpcm_ima_iss to bytestream2.
13 years ago
Ronald S. Bultje
1da9587026
adpcm: convert adpcm_dk3 to bytestream2.
13 years ago
Ronald S. Bultje
d570a96808
adpcm: convert adpcm_dk4 to bytestream2.
13 years ago
Ronald S. Bultje
5353ee3c30
adpcm: convert adpcm_ms to bytestream2.
13 years ago
Ronald S. Bultje
89f3aa8ce2
adpcm: use av_clip() in adpcm_ima_expand_nibble().
13 years ago
Ronald S. Bultje
689be85a9a
adpcm: convert adpcm_4xm to bytestream2.
13 years ago
Ronald S. Bultje
39505f4240
adpcm: convert adpcm_ima_wav to bytestream2.
13 years ago
Ronald S. Bultje
9604307dd8
adpcm: convert adpcm_ima_qt to bytestream2.
13 years ago
Ronald S. Bultje
c346f6304c
adpcm: fix nb_samples rounding for adpcm_ima_dk3, and update reference.
13 years ago
Ronald S. Bultje
86020073db
xa_adpcm: limit filter to prevent xa_adpcm_table[] array bounds overruns.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
bbeb29133b
adpcm: Clip step_index values read from the bitstream at the beginning of each frame.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
13 years ago
Justin Ruggles
02e7dbf5ad
adpcm_ima_ws: fix stereo decoding
...
Stereo ADPCM IMA WS is planar for VQA version 3 and 2-sample interleaved for
VQA version 2.
13 years ago
Justin Ruggles
220506d23f
avcodec: add a new codec_id for CRYO APC IMA ADPCM.
...
The stereo layout and extradata is significantly different from that in
Westwood IMA ADPCM, so a separate codec_id is warranted.
13 years ago
Janne Grunau
bb5b3940b0
adpcm: ADPCM Electronic Arts has always two channels
13 years ago
Paul B Mahol
01a01bf8bd
adpcm: fix IMA SMJPEG decoding
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Shitiz Garg
e614fac2e6
adpcm: Check for channels to be a non-zero integer
...
channels would be 0 sometimes and would cause floating point exception
Fixes bugzilla #124
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
0eea212943
Add avcodec_decode_audio4().
...
Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders.
13 years ago
Mans Rullgard
c8477df019
adpcm: use sign_extend()
...
This avoids warnings from the overflow checker and simplifies the code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
a62c0f94ee
adpcmdec: calculate actual number of output samples for each decoder.
...
This also allows for removing some of the buf_size checks and using the
sample count for some of the decoding loops.
13 years ago
Justin Ruggles
439998e18b
adpcmdec: check remaining buffer size before decoding next block in the
...
ADPCM IMA WAV decoder.
13 years ago
Justin Ruggles
ff5790c761
adpcmdec: do not terminate early in ADPCM IMA Duck DK3 decoder.
...
There are still 2 nibbles to decode once the last byte in the packet has been
read. Updated FATE reference.
13 years ago
Justin Ruggles
8140a1288f
adpcmdec: remove unneeded buf_size==0 check.
...
This is already done by avcodec_decode_audio3()
13 years ago
Justin Ruggles
f7f7c1942b
adpcmdec: remove unneeded zeroing of *data_size
13 years ago
Laurent Aimar
c7f89064e2
adpcm: fix out of bound reads due to integer overflow
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Justin Ruggles
e562fbd003
adpcm: move codec-specific variable declarations to the sections for the corresponding codecs.
13 years ago
Justin Ruggles
9662539c10
adpcm: check buffer size in Funcom ISS decoder before reading header.
...
Also use the post-header data size to control termination of the main
decoding loop.
13 years ago
Justin Ruggles
ba5d2890d7
adpcm: simplify reading of Funcom ISS frame header.
13 years ago
Justin Ruggles
5c9eb4fabb
adpcm: check buffer size in IMA DK4 decoder before reading header.
...
Also use the post-header data size to control termination of the main
decoding loop.
13 years ago
Justin Ruggles
a57ea1a87e
adpcm: simplify reading of IMA DK4 frame header.
13 years ago
Justin Ruggles
8114f94ac9
adpcm_ms: clean up reading of predictor coefficients
13 years ago
Justin Ruggles
943f4db552
adpcm_4xm: process planar packets sequentially rather than simultaneously.
...
Also properly clip the right channel step_index.
13 years ago
Justin Ruggles
119974b164
adpcm_ima_wav: process channel-interleaved blocks sequentially rather than simultaneously.
...
Speeds up the ADPCM IMA WAV decoder by 15-20% overall.
13 years ago