aboutsummaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorTobias Rapp2018-02-26 08:38:53 +0100
committerTobias Rapp2018-02-27 08:34:35 +0100
commitfa0c9d69d3d70ab81400c54a7a7d1446c678ef7a (patch)
treea6bf7a9287f1bcc977b91786d7da06eaffa9dc61 /fftools
parente3851f6a3739e84094051d8b9c85732ab12c9fd9 (diff)
fftools/ffmpeg: replace call to av_strerror with av_err2str
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 32caa4bfb2..3a45f43c1d 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2175,10 +2175,7 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame)
ret = reap_filters(1);
if (ret < 0 && ret != AVERROR_EOF) {
- char errbuf[128];
- av_strerror(ret, errbuf, sizeof(errbuf));
-
- av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
+ av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", av_err2str(ret));
return ret;
}
@@ -4638,10 +4635,7 @@ static int transcode(void)
ret = transcode_step();
if (ret < 0 && ret != AVERROR_EOF) {
- char errbuf[128];
- av_strerror(ret, errbuf, sizeof(errbuf));
-
- av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
+ av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", av_err2str(ret));
break;
}