Commit 82e74ee6 authored by Stefano Sabatini's avatar Stefano Sabatini

doc/examples/filtering: make use of av_err2str()

Simplify.
parent 7b2534b0
......@@ -254,9 +254,7 @@ end:
av_frame_free(&filt_frame);
if (ret < 0 && ret != AVERROR_EOF) {
char buf[1024];
av_strerror(ret, buf, sizeof(buf));
fprintf(stderr, "Error occurred: %s\n", buf);
fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));
exit(1);
}
......
......@@ -243,9 +243,7 @@ end:
av_frame_free(&filt_frame);
if (ret < 0 && ret != AVERROR_EOF) {
char buf[1024];
av_strerror(ret, buf, sizeof(buf));
fprintf(stderr, "Error occurred: %s\n", buf);
fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment