aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-02 13:08:00 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-12-02 14:35:31 +0100
commit82e74ee6e486c5ed956316413c985a9a27c001f8 (patch)
tree87dc2921109d111c277c3257387d104afbfa5f52
parent7b2534b0ea9220b358f6e161e1bb63af6504cdb4 (diff)
downloadffmpeg-82e74ee6e486c5ed956316413c985a9a27c001f8.tar.gz
doc/examples/filtering: make use of av_err2str()
Simplify.
-rw-r--r--doc/examples/filtering_audio.c4
-rw-r--r--doc/examples/filtering_video.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 8a3d91f41d..4081378265 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -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);
}
diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index 9c9881468d..c93332085f 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -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);
}