diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-02 13:08:00 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-02 14:35:31 +0100 |
commit | 82e74ee6e486c5ed956316413c985a9a27c001f8 (patch) | |
tree | 87dc2921109d111c277c3257387d104afbfa5f52 /doc/examples/filtering_audio.c | |
parent | 7b2534b0ea9220b358f6e161e1bb63af6504cdb4 (diff) |
doc/examples/filtering: make use of av_err2str()
Simplify.
Diffstat (limited to 'doc/examples/filtering_audio.c')
-rw-r--r-- | doc/examples/filtering_audio.c | 4 |
1 files changed, 1 insertions, 3 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); } |