ffmpeg: do not warn when expecting EOF from lavfi.
authorClément Bœsch <ubitux@gmail.com>
Thu, 17 May 2012 14:28:19 +0000 (16:28 +0200)
committerClément Bœsch <ubitux@gmail.com>
Thu, 17 May 2012 14:28:19 +0000 (16:28 +0200)
ffmpeg.c

index 75e0287..92c7444 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1964,7 +1964,7 @@ static int poll_filters(void)
                                                        AV_BUFFERSINK_FLAG_NO_REQUEST);
 #endif
                 if (ret < 0) {
-                    if (ret != AVERROR(EAGAIN)) {
+                    if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
                         char buf[256];
                         av_strerror(ret, buf, sizeof(buf));
                         av_log(NULL, AV_LOG_WARNING,