summaryrefslogtreecommitdiff
path: root/libavcodec/wavpack.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-1/+4
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/wavpack: Deduplicate exp and log tablesAndreas Rheinhardt2021-01-081-40/+5
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/wavpack: add support for DSD filesDavid Bryant2020-03-111-0/+2
| | | | | | | | | | | | | | | | | Add support for WavPack DSD files to the existing WavPack decoder using avcodec/dsd to perform the 8:1 decimation to 32-bit float samples. We must serialize the dsd2pcm operation (cross-boundary filtering) but would like to use frame-level multithreading for the CPU-intensive DSD decompression, and this is accomplished with ff_thread_report/await_progress(). Because the dsd2pcm operation is independent across channels we use slice-based multithreading for that part. Also a few things were removed from the existing WavPack decoder that weren't being used (primarily the SavedContext stuff) and the WavPack demuxer was enhanced to correctly determine the sampling rate of DSD files (and of course to no longer reject them). Signed-off-by: David Bryant <david@wavpack.com>
* avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()Michael Niedermayer2018-04-291-2/+2
| | | | | | | | Fixes: runtime error: signed integer overflow: 2147483637 + 128 cannot be represented in type 'int' Fixes: 6701/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5358324934508544 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Change wp_log2() to unsignedMichael Niedermayer2017-06-161-1/+1
| | | | | | | | Fixes: runtime error: signed integer overflow: 2143315325 + 4186162 cannot be represented in type 'int' Fixes: 2134/clusterfuzz-testcase-minimized-4619258405322752 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Fix runtime error: signed integer overflow: 1886191616 + ↵Michael Niedermayer2017-06-111-1/+1
| | | | | | | | | 277872640 cannot be represented in type 'int' Fixes: 2181/clusterfuzz-testcase-minimized-6314784322486272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Fix runtime error: shift exponent 137 is too large for ↵Michael Niedermayer2017-03-141-1/+1
| | | | | | | | | 32-bit type 'int' Fixes: 808/clusterfuzz-testcase-4715513349406720 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Fix runtime error: signed integer overflow: -2147483648 + ↵Michael Niedermayer2017-03-121-2/+2
| | | | | | | | | -83886075 cannot be represented in type 'int' Fixes: 761/clusterfuzz-testcase-5442222252097536 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Check value before shift in wp_exp2()Michael Niedermayer2017-03-021-0/+2
| | | | | | | | | | Fixes undefined shift, all callers should be changed to check the value they use with wp_exp2() or its return value. Fixes: 692/clusterfuzz-testcase-5757381516460032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Add () to protect the arguments of UPDATE_WEIGHT_CLIP()Michael Niedermayer2015-02-181-8/+8
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/wavpack: increase WV_MAX_SAMPLESPaul B Mahol2014-08-291-1/+1
| | | | | | | This is maximal number of samples per frame that current wavpack can create. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/wavpack: fix () in macrosMichael Niedermayer2014-06-181-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix make checkheaders for wavpackenc.hCarl Eugen Hoyos2013-08-311-0/+2
|
* WavPack encoderPaul B Mahol2013-08-141-0/+192
Signed-off-by: Paul B Mahol <onemda@gmail.com>