You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
tools/target_fuzzer: don't spam stderr
Printing dummy logs during fuzzing can significantly slow the process and blow the size of logs, making them both unredable and huge. Keep the loggging commented-out for easy local restore if needed. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -622,7 +622,7 @@ maximums_reached:
|
||||
break;
|
||||
} while (got_frame == 1 && it++ < maxiteration);
|
||||
|
||||
fprintf(stderr, "pixels decoded: %"PRId64", samples decoded: %"PRId64", iterations: %d\n", ec_pixels, nb_samples, it);
|
||||
// fprintf(stderr, "pixels decoded: %"PRId64", samples decoded: %"PRId64", iterations: %d\n", ec_pixels, nb_samples, it);
|
||||
|
||||
av_frame_free(&frame);
|
||||
avcodec_free_context(&ctx);
|
||||
|
@@ -110,9 +110,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
av_channel_layout_describe(& in_ch_layout, in_layout_string, sizeof( in_layout_string));
|
||||
av_channel_layout_describe(&out_ch_layout, out_layout_string, sizeof(out_layout_string));
|
||||
|
||||
fprintf(stderr, "%s %d %s -> %s %d %s\n",
|
||||
av_get_sample_fmt_name( in_sample_fmt), in_sample_rate, in_layout_string,
|
||||
av_get_sample_fmt_name(out_sample_fmt), out_sample_rate, out_layout_string);
|
||||
// fprintf(stderr, "%s %d %s -> %s %d %s\n",
|
||||
// av_get_sample_fmt_name( in_sample_fmt), in_sample_rate, in_layout_string,
|
||||
// av_get_sample_fmt_name(out_sample_fmt), out_sample_rate, out_layout_string);
|
||||
|
||||
if (swr_alloc_set_opts2(&swr, &out_ch_layout, out_sample_fmt, out_sample_rate,
|
||||
&in_ch_layout, in_sample_fmt, in_sample_rate,
|
||||
|
@@ -151,7 +151,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
desc_src = av_pix_fmt_desc_get(srcFormat);
|
||||
desc_dst = av_pix_fmt_desc_get(dstFormat);
|
||||
|
||||
fprintf(stderr, "%d x %d %s -> %d x %d %s\n", srcW, srcH, desc_src->name, dstW, dstH, desc_dst->name);
|
||||
// fprintf(stderr, "%d x %d %s -> %d x %d %s\n", srcW, srcH, desc_src->name, dstW, dstH, desc_dst->name);
|
||||
|
||||
ret = alloc_plane(src, srcStride, srcW, srcH, srcFormat, &srcHShift, &srcVShift);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user