History

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

Ronald S. Bultje committed 2 years ago

Commit a5dabfc1 parent e3558721 file · +2 −0Browse files

Unified · Split

tools/enc_recon_frame_test.c+2−0
@@ -178,6 +178,8 @@ static int process_frame(DecodeContext *dc, AVFrame *frame) · 177 unmodified lines
178178 }
179179
180180 ret = avcodec_send_frame(pd->enc, frame);
181+ if (ret == AVERROR_EOF && !frame)
182+ return 0;
181183 if (ret < 0) {
182184 fprintf(stderr, "Error submitting a frame for encoding\n");
183185 return ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t