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

Simplify.
This commit is contained in:
Stefano Sabatini 2013-12-02 13:08:00 +01:00
parent 7b2534b0ea
commit 82e74ee6e4
2 changed files with 2 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}