diff options
author | Nicolas George <george@nsup.org> | 2017-04-23 14:22:22 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2017-04-23 14:22:22 +0200 |
commit | 0dfb4d4b438b7203b3aaef9fc6ffebc57df140d8 (patch) | |
tree | c808e5a7acb3d7e6eb0b706044aa7ec7c4761f5e | |
parent | ac30754a148df58822a272555d1f6f860e42037e (diff) | |
download | ffmpeg-0dfb4d4b438b7203b3aaef9fc6ffebc57df140d8.tar.gz |
ffmpeg: do not report EOF on filters as an error.
Also print the error message in case of real error.
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |