aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nistspheredec.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/nistspheredec: Clear bufferMichael Niedermayer2024-11-111-1/+1
| | | | | | | | | Fixes: use-of-uninitialized-value Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6515855798632448-cut Found-by: ossfuzz Reported-by: Kacper Michajlow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avformat: Add FFInputFormat, hide internals of AVInputFormatAndreas Rheinhardt2024-03-071-5/+6
| | | | | | | | | | | | | | | | | | | | | This commit does for AVInputFormat what commit 59c9dc82f450638a3068deeb1db5c56f6d155752 did for AVOutputFormat: It adds a new type FFInputFormat, moves all the internals of AVInputFormat to it and adds a now reduced AVInputFormat as first member. This does not affect/improve extensibility of both public or private fields for demuxers (it is still a mess due to lavd). This is possible since 50f34172e0cca2cabc5836308ec66dbf93f5f2a3 (which removed the last usage of an internal field of AVInputFormat in fftools). (Hint: tools/probetest.c accesses the internals of FFInputFormat as well, but given that it is a testing tool this is not considered a problem.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* nistspheredec: convert to new channel layout APIAnton Khirnov2022-03-151-3/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: Constify all muxer/demuxersAndreas Rheinhardt2021-04-271-1/+1
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/nistspheredec: Check bits_per_coded_sample and channelsMichael Niedermayer2021-01-211-1/+5
| | | | | | | | Fixes: signed integer overflow: 80 * 92233009 cannot be represented in type 'int' Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_NISTSPHERE_fuzzer-6669100654919680 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/nistspheredec: Check bpsMichael Niedermayer2020-10-241-0/+2
| | | | | | | | Fixes: left shift of 1111111190 by 3 places cannot be represented in type 'int' Fixes: 26437/clusterfuzz-testcase-minimized-ffmpeg_dem_NISTSPHERE_fuzzer-4886896091856896 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg 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
* Fix all -Wformat warnings raised by DJGPPClément Bœsch2017-03-291-4/+4
|
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-16/+16
| | | | | | | | | | | | | | | | * 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/nistshperedec: add support for mu-law as sample-byte-formatPaul B Mahol2016-04-081-2/+5
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/nistspheredec: fix silly bugPaul B Mahol2016-04-081-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat: support shorten in nistshpere demuxerPaul B Mahol2016-04-071-1/+5
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* replace calls to url_feof() with avio_feof()James Almer2014-08-081-1/+1
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/nistspheredec: initialize header_size to -1Michael Niedermayer2013-12-201-1/+1
| | | | | | | | Fixes use of uninitialized memory This also avoids the need to check the scanf() return as the subsequent check catches it Fixes: msan_uninit-mem_7f712e4dc173_7414_nist_ulaw.nist Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/nistspheredec: check sscanf() success before using the resultMichael Niedermayer2013-12-191-2/+5
| | | | | | | Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f935c3c6c1a_7413_nist_pcms8.nist Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc & lavf: replace deprecated av_log* functionsPaul B Mahol2013-03-151-2/+2
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* NIST SPHERE demuxerPaul B Mahol2012-12-231-0/+128
Signed-off-by: Paul B Mahol <onemda@gmail.com>