mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
tools/target_dec_fuzzer: Do not attempt to fuzz VDPAU, its not supported
Fixes: 1364/clusterfuzz-testcase-minimized-6459843441328128 Fixes: 1392 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d58fe01774
commit
38e79d9d9c
@ -147,6 +147,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
|
avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
|
||||||
|
|
||||||
c = &DECODER_SYMBOL(FFMPEG_DECODER);
|
c = &DECODER_SYMBOL(FFMPEG_DECODER);
|
||||||
|
|
||||||
|
// Unsupported
|
||||||
|
if (c->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU)
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
avcodec_register_all();
|
avcodec_register_all();
|
||||||
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.
|
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.
|
||||||
|
Loading…
Reference in New Issue
Block a user