aboutsummaryrefslogtreecommitdiffstats
path: root/tools/enc_recon_frame_test.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2024-11-08 10:36:58 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2024-11-13 09:26:22 -0500
commita5dabfc9c03f16af5a99b056f080421ed6ecc57d (patch)
treeabed439bd5b6d5e39930a9929139b2e8e729102d /tools/enc_recon_frame_test.c
parente35587250c3e036261ea9cfc266e74730b6f60ae (diff)
downloadffmpeg-a5dabfc9c03f16af5a99b056f080421ed6ecc57d.tar.gz
enc_recon_frame_test: don't print an error on EOF.
Before: $ make tools/enc_recon_frame_test $ tools/enc_recon_frame_test ~/Movies/cif/bus_cif.y4m libx264 'tune=psnr' Error submitting a frame for encoding After: All 150 encoded frames match
Diffstat (limited to 'tools/enc_recon_frame_test.c')
-rw-r--r--tools/enc_recon_frame_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c
index c6da6750fe..83cc8343d3 100644
--- a/tools/enc_recon_frame_test.c
+++ b/tools/enc_recon_frame_test.c
@@ -178,6 +178,8 @@ static int process_frame(DecodeContext *dc, AVFrame *frame)
}
ret = avcodec_send_frame(pd->enc, frame);
+ if (ret == AVERROR_EOF && !frame)
+ return 0;
if (ret < 0) {
fprintf(stderr, "Error submitting a frame for encoding\n");
return ret;