History

doc/examples/decoder_targeted: Disable error concealment after 20 frames

This allows testing EC and non EC. Avoids spending most time in EC on high res samples and reduces the likelyhood of hitting timeouts Fixes: Timeout in 467/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_H263_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg

Michael Niedermayer committed 9 years ago

Commit bbd4d921 parent c6f7f331 file · +4 −0Browse files

Unified · Split

doc/examples/decoder_targeted.c+4−0
@@ -180,6 +180,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { · 179 unmodified lines
180180 while (avpkt.size > 0 && it++ < maxiteration) {
181181 av_frame_unref(frame);
182182 int ret = decode_handler(ctx, frame, &got_frame, &avpkt);
183+
184+ if (it > 20)
185+ ctx->error_concealment = 0;
186+
183187 if (ret <= 0 || ret > avpkt.size)
184188 break;
185189 avpkt.data += ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t