1
0
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:
Kacper Michajłow
2025-07-26 05:01:14 +02:00
parent 8b5db38dc6
commit c24b9b4b73
3 changed files with 5 additions and 5 deletions

View File

@@ -622,7 +622,7 @@ maximums_reached:
break; break;
} while (got_frame == 1 && it++ < maxiteration); } 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); av_frame_free(&frame);
avcodec_free_context(&ctx); avcodec_free_context(&ctx);

View File

@@ -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(& in_ch_layout, in_layout_string, sizeof( in_layout_string));
av_channel_layout_describe(&out_ch_layout, out_layout_string, sizeof(out_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", // 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( in_sample_fmt), in_sample_rate, in_layout_string,
av_get_sample_fmt_name(out_sample_fmt), out_sample_rate, out_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, if (swr_alloc_set_opts2(&swr, &out_ch_layout, out_sample_fmt, out_sample_rate,
&in_ch_layout, in_sample_fmt, in_sample_rate, &in_ch_layout, in_sample_fmt, in_sample_rate,

View File

@@ -151,7 +151,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
desc_src = av_pix_fmt_desc_get(srcFormat); desc_src = av_pix_fmt_desc_get(srcFormat);
desc_dst = av_pix_fmt_desc_get(dstFormat); 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); ret = alloc_plane(src, srcStride, srcW, srcH, srcFormat, &srcHShift, &srcVShift);
if (ret < 0) if (ret < 0)