Browse Source

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

Also print the error message in case of real error.
tags/n3.4
Nicolas George 8 years ago
parent
commit
0dfb4d4b43
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffmpeg.c

+ 2
- 1
ffmpeg.c View File

@@ -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;
}



Loading…
Cancel
Save