summaryrefslogtreecommitdiff
path: root/libavformat/dhav.c
Commit message (Collapse)AuthorAge
* avformat/dhav: Don't truncate return value of avio_skip()Andreas Rheinhardt2022-05-10
| | | | | | | Fixes demuxing files bigger than INT_MAX. Reported-by: jenster Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* dhav: convert to new channel layout APIAnton Khirnov2022-03-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dhav: Limit get_duration() iterationsMichael Niedermayer2021-11-14
| | | | | | | | | Fixes: Timeout Fixes: 39971/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5756969890217984 Fixes: 39977/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-5327123053674496 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/dhav: make duration extraction more robustPaul B Mahol2021-10-13
|
* avformat/dhav: check if timestamp matches when seekingPaul B Mahol2021-10-13
|
* avformat/dhav: do not use zero fpsMichael Niedermayer2021-09-19
| | | | | | | | | Fixes: assertion failure Fixes: 38332/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-4522405595316224 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>
* avformat: Avoid allocation for AVStreamInternalAndreas Rheinhardt2021-09-17
| | | | | | | | | | Do this by allocating AVStream together with the data that is currently in AVStreamInternal; or rather: Put AVStream at the beginning of a new structure called FFStream (which encompasses more than just the internal fields and is a proper context in its own right, hence the name) and remove AVStreamInternal altogether. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/dhav: use frame number if timestamp difference is zeroPaul B Mahol2021-09-08
|
* avformat: Constify all muxer/demuxersAndreas Rheinhardt2021-04-27
| | | | | | | 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/dhav: Break out of infinite dhav search loopMichael Niedermayer2021-01-21
| | | | | | | | Fixes: Infinite loop Fixes: 26922/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-5794549613723648 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/dhav: Fix incorrect non-DHAV chunk skipping logicIdan Freiberg2021-01-14
| | | | | | | | | | DAV files may contain a variable length padding in between chunks filled with 0xff bytes. The current skipping logic is incorrect as it may skip over DHAV chunks not appearing sequentially in the file. We now look for the 'DHAV' tag using a byte-by-byte search in order to handle such situations. Also the dhav->last_good_pos field will not be updated while skipping unrecognized data.
* avformat/dhav: Check position for overflowMichael Niedermayer2021-01-08
| | | | | | | | Fixes: signed integer overflow: 9223372036854775807 + 32768 cannot be represented in type 'long' Fixes: 27744/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-5179319491756032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf: move AVStream.*index_entries* to AVStreamInternalAnton Khirnov2020-10-28
| | | | | | | Those are private fields, no reason to have them exposed in a public header. Since there are some (semi-)public fields located after these, even though this section is supposed to be private, keep some dummy padding there until the next major bump to preserve ABI compatibility.
* lavc, lavf: Remove newlines from calls to avpriv_request_sample().Carl Eugen Hoyos2020-10-11
|
* avformat/dhav: improve seekingPaul B Mahol2019-12-25
|
* avformat/dhav: fix demuxer since recent breakagePaul B Mahol2019-09-27
|
* avformat/dhav: always initializer retPaul B Mahol2019-08-28
|
* avformat/dhav: handle files missing data at startPaul B Mahol2019-08-24
| | | | | Try to seek to end of file and if signature is found seek backwards until last valid chunk is found.
* avformat/dhav: gracefully handle corrupted filesPaul B Mahol2019-08-24
| | | | Try to find next valid chunk in offsets of 0x8000 from last good one.
* lavf: Constify the probe function argument.Carl Eugen Hoyos2019-03-21
| | | | | Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
* avformat/dhav: export average frame rate tooPaul B Mahol2018-12-09
|
* avformat/dhav: improve A/V syncPaul B Mahol2018-11-24
| | | | Actual stored timestamps take only 16bits.
* avformat: add DHAV demuxerPaul B Mahol2018-11-24
Signed-off-by: Paul B Mahol <onemda@gmail.com>