ffmpeg: do not report EOF on filters as an error.
authorNicolas George <george@nsup.org>
Sun, 23 Apr 2017 12:22:22 +0000 (14:22 +0200)
committerNicolas George <george@nsup.org>
Sun, 23 Apr 2017 12:22:22 +0000 (14:22 +0200)
Also print the error message in case of real error.

ffmpeg.c

index 70431e8..bf04a6c 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2213,7 +2213,8 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame)
 
     ret = av_buffersrc_add_frame_flags(ifilter->filter, frame, AV_BUFFERSRC_FLAG_PUSH);
     if (ret < 0) {
-        av_log(NULL, AV_LOG_ERROR, "Error while filtering\n");
+        if (ret != AVERROR_EOF)
+            av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", av_err2str(ret));
         return ret;
     }