summaryrefslogtreecommitdiff
path: root/libavformat/genh.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/genh: Check sample rateMichael Niedermayer2022-09-261-0/+3
| | | | | | | | | | | Fixes: signed integer overflow: -2515507630940093440 * 4 cannot be represented in type 'long' Fixes: 46318/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5009637474172928 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a3d790f1977ed6c326eb93bb61757297a7905dcc) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/genh: Check block_alignMichael Niedermayer2021-02-021-0/+3
| | | | | | | | | | Fixes: infinite loop Fixes: 26440/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5632134020333568 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 37396e9ba85d8969a3b5e3314ab99ff604845628) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/genh: Check block_align for how it will be used in SDX2_DPCMMichael Niedermayer2021-02-021-1/+3
| | | | | | | | | | Fixes: signed integer overflow: 19922944 * 1024 cannot be represented in type 'int' Fixes: 26402/clusterfuzz-testcase-minimized-ffmpeg_dem_VMD_fuzzer-5745470053548032 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 c95b47e18fdb43a4c667ae22a5d3a5ee6cf7782d) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf: Constify the probe function argument.Carl Eugen Hoyos2019-03-211-1/+1
| | | | | Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
* genh: prevent overflow during block alignment calculationAndreas Cadhalpun2017-01-301-1/+2
| | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-42/+42
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat/genh: Mark coef_splitted as av_unusedMichael Niedermayer2016-02-141-1/+1
| | | | | | | This avoid "libavformat/genh.c:43:14: warning: variable coef_splitted set but not used" Fewer warnings makes it easier to see new and important warnings Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/genh: Fix tools/probetest failureMichael Niedermayer2015-11-181-0/+2
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: add ADPCM AICA decoderPaul B Mahol2015-10-291-0/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec: add SDX2 DPCM decoderPaul B Mahol2015-10-261-0/+4
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/genh: add ADPCM IMA DVI supportPaul B Mahol2015-10-231-1/+6
| | | | | | Our decoder have wrong name. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/genh: Check av_new_packet() return valueMichael Niedermayer2015-10-171-1/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat: add genh demuxerPaul B Mahol2015-10-161-0/+180
Signed-off-by: Paul B Mahol <onemda@gmail.com>