aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g729postfilter.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/g729postfilter: Clip gain before scaling with AGC_FAC1Michael Niedermayer2020-07-051-0/+1
| | | | | | | | | | | | | | The fixed point integer reference specifies the multiplication used to have 16bit input and clips so we need to clip the input The floating point implementation does not seem to do that. Fixes: signed integer overflow: 6317568 * 410 cannot be represented in type 'int' Fixes: 20492/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G729_fuzzer-5700189272932352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 82d4c7b95ed98d38aa834ef5a8fb1d2ef3901698) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Optimize out overflowing multiplication from ↵Michael Niedermayer2020-04-231-7/+7
| | | | | | | | | | | | apply_tilt_comp() Fixes: signed integer overflow: -1114392282 * 2 cannot be represented in type 'int' Fixes: 19236/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G729_fuzzer-5741678938030080 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c0bd5fa43d193aa389bea7c5176b2fe23f6eeddd) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix left shift of negative valueMichael Niedermayer2019-12-061-3/+3
| | | | | | | | | Fixes: Ticket8176 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 5f0acc5064ed501cb40d4aaccae2b3ce5c4552fd) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix undefined intermediate pointersMichael Niedermayer2019-12-061-2/+2
| | | | | | | | | | Fixes: index -49 out of bounds for type 'int16_t [192]' Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0c61661a2cbe1b8b284c80ada1c2fdddf4992cad) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix undefined shiftsMichael Niedermayer2019-12-061-5/+5
| | | | | | | | | | Fixes: left shift of negative value -12 Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6a4fdbf112385824fc9b7d7739685359213b579a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9a9e2f1c8aa4539a261625145e5c1f46a8106ac2'Michael Niedermayer2014-06-221-14/+14
| | | | | | | | | | | | | | | | * commit '9a9e2f1c8aa4539a261625145e5c1f46a8106ac2': dsputil: Split audio operations off into a separate context Conflicts: configure libavcodec/takdec.c libavcodec/x86/Makefile libavcodec/x86/dsputil.asm libavcodec/x86/dsputil_init.c libavcodec/x86/dsputil_mmx.c libavcodec/x86/dsputil_x86.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/g729postfilter: avoid potential negative shiftMichael Niedermayer2014-04-271-1/+1
| | | | | | Fixes CID1194402 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (29 commits) sbrdsp.asm: convert all instructions to float/SSE ones. dv: cosmetics. dv: check buffer size before reading profile. Revert "AAC SBR: group some writes." udp: Print an error message if bind fails cook: extend channel uncoupling tables so the full bit range is covered. roqvideo: cosmetics. roqvideo: convert to bytestream2 API. dca: don't use av_clip_uintp2(). wmall: fix build with -DDEBUG enabled. smc: port to bytestream2 API. AAC SBR: group some writes. dsputil: remove shift parameter from scalarproduct_int16 SBR DSP: unroll sum_square rv34: remove dead code in intra availability check rv34: clean a bit availability checks. v4l2: update documentation tgq: convert to bytestream2 API. parser: remove forward declaration of MpegEncContext dca: prevent accessing static arrays with invalid indexes. ... Conflicts: doc/indevs.texi libavcodec/Makefile libavcodec/dca.c libavcodec/dvdata.c libavcodec/eatgq.c libavcodec/mmvideo.c libavcodec/roqvideodec.c libavcodec/smc.c libswscale/output.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* g729dec: prevent out of array accessMichael Niedermayer2011-10-011-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add a shift parameter to celp_lp_synthesis_filter for reuse by the G.723.1 ↵Mohamed Naufal Basheer2011-09-291-2/+2
| | | | decoder
* g729dec: fix warnings:Vitor Sessak2011-09-251-1/+1
| | | | | | | libavcodec/g729postfilter.c: In function ‘long_term_filter’: libavcodec/g729postfilter.c:114: warning: unused variable ‘n’ Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* g729dec: Fix warnings:Vitor Sessak2011-09-251-1/+1
| | | | | | | | libavcodec/g729dec.c: In function ‘decode_frame’: libavcodec/g729dec.c:662: warning: passing argument 3 of ‘ff_g729_postfilter’ from incompatible pointer type libavcodec/g729postfilter.h:96: note: expected ‘int16_t *’ but argument is of type ‘int *’ Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* g729dec: Add ff_ prefix to g729_postfilter() and g729_adaptive_gain_control()Vitor Sessak2011-09-251-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Adaptive gain controlVladimir Voroshilov2011-09-241-0/+48
|
* G.729 postfilterVladimir Voroshilov2011-09-241-0/+562