summaryrefslogtreecommitdiff
path: root/doc/examples/filtering_video.c
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 /doc/examples/filtering_video.c
parent7b2534b0ea9220b358f6e161e1bb63af6504cdb4 (diff)
doc/examples/filtering: make use of av_err2str()
Simplify.
Diffstat (limited to 'doc/examples/filtering_video.c')
-rw-r--r--doc/examples/filtering_video.c4
1 files changed, 1 insertions, 3 deletions
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);
}