Michael Niedermayer
c6282141cb
avcodec/ra144: Fix integer overflow in add_wav()
...
Fixes: signed integer overflow: -2144033225 + -5208934 cannot be represented in type 'int'
Fixes: 10633/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-5679133791617024
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
93a203662f
avcodec/ra144: Fix undefined integer overflow in add_wav()
...
Fixes: signed integer overflow: -26884 * 91439 cannot be represented in type 'int'
Fixes: 9687/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-4995588121690112
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
b31189881a
avcodec/ra144: Fix integer overflow in ff_eval_refl()
...
Fixes: signed integer overflow: -4096 * -524288 cannot be represented in type 'int'
Fixes: 8650/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-5734816036159488
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
71da0a5c97
avcodec/ra144: Fix runtime error: signed integer overflow: -2200 * 1033073 cannot be represented in type 'int'
...
Fixes: 2175/clusterfuzz-testcase-minimized-5809657849315328
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
08cb69e870
avcodec/ra144: Fixes runtime error: signed integer overflow: 7160 * 327138 cannot be represented in type 'int'
...
Fixes: 1908/clusterfuzz-testcase-minimized-5392712477966336
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
7c845450d2
avcodec/ra144: Fix runtime error: signed integer overflow: -2449 * 1398101 cannot be represented in type 'int'
...
Fixes: 1885/clusterfuzz-testcase-minimized-5336328549957632
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
4c472c5252
avcodec/ra144: Fix runtime error: signed integer overflow: 11184810 * 404 cannot be represented in type 'int'
...
Fixes: 1884/clusterfuzz-testcase-minimized-4637425835966464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
78bf446852
avcodec/ra144: Fix runtime error: left shift of negative value -798
...
Fixes: 1388/clusterfuzz-testcase-minimized-6680800936329216
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Paul B Mahol
6dfa70f272
Correct few "ffmpeg" typos
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Christophe Gisquet
c3390fd56c
ra144: use scalarproduct_int16
...
The buffer holding the coefficients must be padded with 0 so as to use DSP
functions that may overread. Currently, the SSE2/3 versions is an example,
as they process batches of 16 bytes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
088f38a4f9
avcodec: Drop unnecessary ff_ name prefixes from static functions
12 years ago
Michael Niedermayer
3220083c11
ra144: Try to fix int16/uint16 warnings from pgc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
9734b8ba56
Move avutil tables only used in libavcodec to libavcodec.
12 years ago
Michael Niedermayer
1e83e6ad7a
ra144: fix code with ftrapv.
...
A better solution is welcome!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
127b70e423
ra144: factor division out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mohamed Naufal Basheer
8aac5585fa
Add a shift parameter to celp_lp_synthesis_filter()
...
This is intended for reuse by the G.723.1 decoder
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Justin Ruggles
f10524d51c
ra144: use macro constants to make the code more understandable.
13 years ago
Mohamed Naufal Basheer
bcc67dffa0
Add a shift parameter to celp_lp_synthesis_filter for reuse by the G.723.1 decoder
13 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
be61983d52
Make ff_add_wav static to ra144.c
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 1a88674862
)
14 years ago
Diego Elio Pettenò
1a88674862
Make ff_add_wav static to ra144.c
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Francesco Lavra
756e346798
Split do_output_subblock() into common code and decoder specific parts
...
Patch by Francesco Lavra (firstnamelastname@interfree.it )
Originally committed as revision 23576 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
5ec29beeb4
Cosmetics: indent
...
Patch by Francesco Lavra (firstnamelastname@interfree.it )
Originally committed as revision 23575 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
6ea6c8ebcf
Add ff_ prefix to non-static functions
...
Patch by Francesco Lavra (firstnamelastname@interfree.it )
Originally committed as revision 23574 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
0acaf8b0f2
Split ra144.c in common code (to be shared with the future encoder) and
...
decoder.
Patch by Francesco Lavra (firstnamelastname@interfree.it )
Originally committed as revision 23573 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
94ca624fbc
Move ff_sqrt() to libavutil/intmath.h
...
Originally committed as revision 22345 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
7df8af6385
Fix reading beyond buffer end on RA144Context.lpc_tables.
...
Patch by Francesco Lavra (francescolavra -at- interfree -dot- it)
Originally committed as revision 21796 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
643bae382c
Use correct context for av_log(), should prevent a crash for malformed files.
...
Patch by Francesco Lavra (francescolavra at interfree dot it).
Originally committed as revision 21031 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
...
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.
Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
09096c9fad
RA144: work around gcc bug/oddity on ARM
...
This should not make any difference, yet some gcc versions on ARM
produce incorrect output without this fix.
Approved by Vitor.
Originally committed as revision 17698 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
8d2544bd1b
Reindent after last commit
...
Originally committed as revision 17678 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Vitor Sessak
9e27e0d4f8
Do not read uninitialized buffer, no matter if it will be multiplied by
...
zero later. This should fix some valgrind warnings and hopefully FATE
ra144 test on ARM.
Originally committed as revision 17677 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kenan Gillet
4599d22c0c
Split off celp_filters.[ch] from acelp_filters.[ch] for the QCELP decoder.
...
patch by Kenan Gillet, kenan.gillet gmail com
Originally committed as revision 15680 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
36b3e36e00
misc spelling/wording/grammar fixes
...
Originally committed as revision 15296 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
20242eed99
Normalize triplets in gain_val_tab[][] so gain_exp_tab[] can be just an
...
one-dimensional array.
Originally committed as revision 15273 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
3e30f46f8b
Pass directly variable 'a' to interp instead of evaluating it from num_blocks
...
Originally committed as revision 15269 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
b28bdce688
Simplify if() in copy_and_dup()
...
Originally committed as revision 15268 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
8022a8ebc2
Add av_cold attribute to decode_init()
...
Originally committed as revision 15267 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
c96a764c72
Cosmetics: Make the two additional units in size more clear
...
Originally committed as revision 15266 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
4fdb41a84b
Test a var for overflow just after it is set
...
Originally committed as revision 15223 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
a90fbeec2a
Remove useless parentheses.
...
Originally committed as revision 15222 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
b888abe1be
Cosmetics: rename loop counters in eval_refl()
...
Originally committed as revision 14653 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
bdb34c9f5e
Simplify eval_refl(): do not store a buffer value in a var when the buffer could be used directly
...
Originally committed as revision 14652 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
aa425ada54
Simplify eval_refl(): s/b == 0/!b/
...
Originally committed as revision 14651 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
40812fdcf1
Simplify range checking in eval_refl(). Before the
...
condition b == 0 could never be true, because it would
have already been caught in the previous ifs. Also the
condition b == 0x1000 could never be true (it would
triggered the return).
Originally committed as revision 14650 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vitor Sessak
d70875c81d
Cosmetics: reindent
...
Originally committed as revision 14649 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago