summaryrefslogtreecommitdiff
path: root/libavcodec/g729postfilter.c
Commit message (Collapse)AuthorAge
* Remove/replace some unnecessary avcodec.h inclusionsAndreas Rheinhardt2021-07-22
| | | | | | | Also remove other unnecessary headers and include headers directly while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/g729postfilter.h: Include acelp_pitch_delay.hAndreas Rheinhardt2021-07-22
| | | | | | Needed for PITCH_DELAY_MAX. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/g729postfilter: Clip gain before scaling with AGC_FAC1Michael Niedermayer2020-05-11
| | | | | | | | | | | | 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>
* avcodec/g729postfilter: Optimize out overflowing multiplication from ↵Michael Niedermayer2020-01-11
| | | | | | | | | | 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>
* avcodec/g729postfilter: Fix left shift of negative valueMichael Niedermayer2019-10-19
| | | | | | | Fixes: Ticket8176 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix undefined intermediate pointersMichael Niedermayer2019-10-16
| | | | | | | | 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>
* avcodec/g729postfilter: Fix undefined shiftsMichael Niedermayer2019-10-16
| | | | | | | | 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>
* avcodec/g729postfilter: Avoid function calls in FFMAX() argumentsMichael Niedermayer2015-11-10
| | | | | | | This avoid double calling functions Found-by: Muhammad Faiz <mfcc64@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9a9e2f1c8aa4539a261625145e5c1f46a8106ac2'Michael Niedermayer2014-06-22
| | | | | | | | | | | | | | | | * 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-27
| | | | | | Fixes CID1194402 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-01
| | | | 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-29
| | | | decoder
* g729dec: fix warnings:Vitor Sessak2011-09-25
| | | | | | | 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-25
| | | | | | | | 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-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Adaptive gain controlVladimir Voroshilov2011-09-24
|
* G.729 postfilterVladimir Voroshilov2011-09-24