Michael Niedermayer
2bc3811c0d
avcodec/dxv: Check that there is enough data to decompress
...
Fixes: Timeout
Fixes: 10979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-6178582203203584
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Paul B Mahol
250792be5e
avcodec/dxv: add support for "high" quality mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Michael Niedermayer
d662143f06
avcodec/dxv: Check for end of input in dxv_decompress_dxt5()
...
Fixes: Timeout
Fixes: 3291/clusterfuzz-testcase-4630024655208448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
eb50492270
avcodec/dxv: Check remaining bytes in dxv_decompress_raw()
...
Fixes: Timeout
Fixes: 2006/clusterfuzz-testcase-minimized-5766515037044736
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
549045254c
Fix all -Wformat warnings raised by DJGPP
8 years ago
Diego Biurrun
0b77a59336
Use correct printf conversion specifiers for POSIX integer types
8 years ago
Diego Biurrun
c454dfcff9
Use ISO C printf conversion specifiers where appropriate
8 years ago
Diego Biurrun
1263b2039e
Adjust printf conversion specifiers to match variable signedness
8 years ago
Martin Storsjö
9806b9ab5c
Revert "Don't use expressions with side effects in macro parameters"
...
This reverts commit 25bacd0a0c
.
Since 230b1c070
, the bytewise AV_W*() macros only expand their
argument once, so revert to the more readable version of these.
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Martin Storsjö
25bacd0a0c
Don't use expressions with side effects in macro parameters
...
AV_WB32 can be implemented as a macro that expands its parameters
multiple times (in case AV_HAVE_FAST_UNALIGNED isn't set and the
compiler doesn't support GCC attributes); make sure not to read
multiple times from the source in this case.
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Martin Storsjö
7ebdffc353
dxv: Check to make sure we don't overrun buffers on corrupt inputs
...
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Michael Niedermayer
68eb20801d
avcodec/dxv: Check idx in dxv_decompress_dxt5()
...
Fixes potential out of array read
No testcase available
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
eb8a67de75
avcodec/dxv: Check idx in CHECKPOINT()
...
Fixes out of array read
Fixes Ticket5098
Fixes Ticket5099
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vittorio Giovara
b2417ee6d1
dxv: Improve error message
9 years ago
Vittorio Giovara
1bcd4a476b
dxv: Support RAW intermediate compression
...
Sample-Id: boombox64.mov
Reported-by: Aarni Koskela
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
bbf71d46db
dxv: Print texture information after header parsing
9 years ago
Vittorio Giovara
fb2889691c
dxv: Support the original first version
...
DXV 1.0 provided DXT1 with LZF only.
Sample-Id: Orange-Strings-07_640_DXV.mov
Reported-by: Carl Eugen Hoyos
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
588a5619da
dxv: Parse ancillary encoder information
...
Header does not contain the number of channels, but rather the encoder
version, so rename the variable, and read the additional byte.
9 years ago
Paul B Mahol
92bfc3cd03
avcodec/dxv: remove code that is never reached
...
The function is automatically called.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Carl Eugen Hoyos
9b2802f0d3
lavc/dxv: Support more real-world old version samples.
9 years ago
Carl Eugen Hoyos
84c9bf62b4
lavc/dxv: Silence "Multiple ff_thread_finish_setup() calls" warnings.
9 years ago
Vittorio Giovara
c45fcf30cf
DXV decoder
...
Support all DXDI and DXD3 normal quality videos.
9 years ago