Michael Niedermayer
be9ba46370
avformat/dhav: Break out of infinite dhav search loop
...
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>
(cherry picked from commit 7540d60bf687ae1f18927c5e6c3dbd317df9f35e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-02-02 14:18:21 +01:00
Michael Niedermayer
ef2e673f8f
avformat/dhav: Check position for overflow
...
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>
(cherry picked from commit 0a0b92b4b2b1288141059684cea741a79cc1e7f2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-02-02 14:18:21 +01:00
Paul B Mahol
e3dca0744d
avformat/dhav: improve seeking
2019-12-25 22:10:47 +01:00
Paul B Mahol
bb697f30ab
avformat/dhav: fix demuxer since recent breakage
2019-09-27 14:25:18 +02:00
Paul B Mahol
d8410e9cf9
avformat/dhav: always initializer ret
2019-08-28 15:44:36 +02:00
Paul B Mahol
45cefca1e7
avformat/dhav: handle files missing data at start
...
Try to seek to end of file and if signature is found seek backwards until
last valid chunk is found.
2019-08-24 20:34:22 +01:00
Paul B Mahol
96fd07351a
avformat/dhav: gracefully handle corrupted files
...
Try to find next valid chunk in offsets of 0x8000 from last good one.
2019-08-24 20:34:05 +01:00
Carl Eugen Hoyos
4d8875ec23
lavf: Constify the probe function argument.
...
Reviewed-by: Lauri Kasanen
Reviewed-by: Tomas Härdin
2019-03-21 11:42:17 +01:00
Paul B Mahol
c782e7aa9e
avformat/dhav: export average frame rate too
2018-12-09 10:49:00 +01:00
Paul B Mahol
24386b1707
avformat/dhav: improve A/V sync
...
Actual stored timestamps take only 16bits.
2018-11-24 22:14:14 +01:00
Paul B Mahol
b80003fe28
avformat: add DHAV demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-11-24 15:11:27 +01:00