mirror of
https://github.com/librempeg/librempeg
synced 2024-11-21 16:44:05 +00:00
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
This commit is contained in:
parent
f67e50abf2
commit
0587cc6e6b
@ -178,6 +178,8 @@ static int process_frame(DecodeContext *dc, AVFrame *frame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = avcodec_send_frame(pd->enc, frame);
|
ret = avcodec_send_frame(pd->enc, frame);
|
||||||
|
if (ret == AVERROR_EOF && !frame)
|
||||||
|
return 0;
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "Error submitting a frame for encoding\n");
|
fprintf(stderr, "Error submitting a frame for encoding\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user