[FFmpeg-cvslog] ffmpeg: do not report EOF on filters as an error.

Nicolas George git at videolan.org
Sun Apr 23 16:27:30 EEST 2017


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Sun Apr 23 14:22:22 2017 +0200| [0dfb4d4b438b7203b3aaef9fc6ffebc57df140d8] | committer: Nicolas George

ffmpeg: do not report EOF on filters as an error.

Also print the error message in case of real error.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0dfb4d4b438b7203b3aaef9fc6ffebc57df140d8
---

 ffmpeg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 70431e8808..bf04a6c683 100644
--- 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;
     }
 



More information about the ffmpeg-cvslog mailing list