diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-06 15:13:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-06 15:15:14 +0200 |
commit | 38e79d9d9c94d27fbfa6fc810267eeb785b50b24 (patch) | |
tree | 5c87f22e5b3a653dfda8c4d175ed979d3bb13f43 | |
parent | d58fe0177453bfa43eca9e5174304025248908b2 (diff) | |
download | ffmpeg-streaming-38e79d9d9c94d27fbfa6fc810267eeb785b50b24.zip ffmpeg-streaming-38e79d9d9c94d27fbfa6fc810267eeb785b50b24.tar.gz |
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>
-rw-r--r-- | tools/target_dec_fuzzer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index d5ba99d..ed6e242 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -147,6 +147,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER)); c = &DECODER_SYMBOL(FFMPEG_DECODER); + + // Unsupported + if (c->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU) + return 0; #else avcodec_register_all(); c = AVCodecInitialize(FFMPEG_CODEC); // Done once. |