Commit 0dfb4d4b authored by Nicolas George's avatar Nicolas George

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

Also print the error message in case of real error.
parent ac30754a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment