Michael Niedermayer
92b1949191
avformat/sccdec: Use larger intermediate for ts/next_ts computation
...
Fixes: signed integer overflow: 92237203 * 33 cannot be represented in type 'int'
Fixes: 26910/clusterfuzz-testcase-minimized-ffmpeg_dem_SCC_fuzzer-6603769487949824
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years ago
Andreas Rheinhardt
05475ad26b
avformat/sccdec: Avoid variable that is always zero
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Paul B Mahol
b52ca2cec2
avformat/sccdec: make splitting more robust
4 years ago
Paul B Mahol
5422a4a7c5
avformat/sccdec: simplify demuxer a little
4 years ago
Paul B Mahol
6c84f8afae
avformat/sccdec: unbreak previous commits to this file
4 years ago
Andreas Rheinhardt
f3c63e67bb
avformat/sccdec: Fix memleak upon read header failure
...
The already parsed subtitles (contained in an FFDemuxSubtitlesQueue)
would leak if an error happened upon reading a subsequent subtitle.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Paul B Mahol
416dc133b9
avformat/sccdec: move pos variables outside of loop
...
Ensures that sub->pos is always correct.
4 years ago
Paul B Mahol
49d07642f3
avformat/sccdec: split line with multiple subs
4 years ago
Paul B Mahol
a15618d2c3
avformat/sccdec: use av_sscanf() instead
5 years ago
Paul B Mahol
a13af9aee1
avformat/sccdec: only change duration for last subtitle
5 years ago
Paul B Mahol
13bffa7969
avformat/sccdec: fix sub->pos values
5 years ago
Paul B Mahol
9da7536ce2
avformat/sccdec: fix timestamp of last subtitle
...
Fixes -c:s copy case.
5 years ago
Paul B Mahol
de125a0942
avformat/sccdec: remove not needed code
5 years ago
Paul B Mahol
2b15d436db
avformat/sccdec: display last caption even when there is no empty last line
5 years ago
Carl Eugen Hoyos
4d8875ec23
lavf: Constify the probe function argument.
...
Reviewed-by: Lauri Kasanen
Reviewed-by: Tomas Härdin
6 years ago
Paul B Mahol
76331361a5
avformat/sccdec: simplify 2 sscanf calls
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
4cfa1f80a9
avformat/sccdec: attempt to fix valgrind issue
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
45ff6ef50e
avformat: add Scenarist Closed Captions demuxer
...
Fixes #4767 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago