diff mbox

[FFmpeg-devel,07/12] tools/target_dec_fuzzer: Print samples decoded like pixels

Message ID 20190925203858.27870-7-michael@niedermayer.cc
State Accepted
Commit ec4ad6fb9ec430b80ed27acafea603e69e5a3e12
Headers show

Commit Message

Michael Niedermayer Sept. 25, 2019, 8:38 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Sept. 26, 2019, 7:53 a.m. UTC | #1
lgtm

On 9/25/19, Michael Niedermayer <michael@niedermayer.cc> wrote:
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  tools/target_dec_fuzzer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
> index 6c670d8eb9..4af7b26e54 100644
> --- a/tools/target_dec_fuzzer.c
> +++ b/tools/target_dec_fuzzer.c
> @@ -297,7 +297,7 @@ maximums_reached:
>          decode_handler(ctx, frame, &got_frame, &avpkt);
>      } while (got_frame == 1 && it++ < maxiteration);
>
> -    fprintf(stderr, "pixels decoded: %"PRId64", iterations: %d\n",
> ec_pixels, 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);
> --
> 2.23.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Michael Niedermayer Sept. 26, 2019, 6:36 p.m. UTC | #2
On Thu, Sep 26, 2019 at 09:53:19AM +0200, Paul B Mahol wrote:
> lgtm

will apply

thx

[...]
diff mbox

Patch

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 6c670d8eb9..4af7b26e54 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -297,7 +297,7 @@  maximums_reached:
         decode_handler(ctx, frame, &got_frame, &avpkt);
     } while (got_frame == 1 && it++ < maxiteration);
 
-    fprintf(stderr, "pixels decoded: %"PRId64", iterations: %d\n", ec_pixels, 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);