fftools/ffmpeg: replace call to av_strerror with av_err2str
authorTobias Rapp <t.rapp@noa-archive.com>
Mon, 26 Feb 2018 07:38:53 +0000 (08:38 +0100)
committerTobias Rapp <t.rapp@noa-archive.com>
Tue, 27 Feb 2018 07:34:35 +0000 (08:34 +0100)
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
fftools/ffmpeg.c

index 32caa4b..3a45f43 100644 (file)
@@ -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;
         }