diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2016-01-02 14:43:12 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-01-04 16:58:32 +0100 |
commit | 7ebf1b4adad40e2b0d88ebd5cfde821a7a0ceab2 (patch) | |
tree | 62d30eb39d9766048c30e0024ad85d7592413ceb | |
parent | 2080bea4a74b6b1598caa806a11ea807ba546f94 (diff) | |
download | ffmpeg-7ebf1b4adad40e2b0d88ebd5cfde821a7a0ceab2.tar.gz |
avconv: Simplify poll_filters() return value check
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | avconv.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -2556,16 +2556,12 @@ static int transcode(void) } ret = poll_filters(); - if (ret < 0) { - if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) { - continue; - } else { - char errbuf[128]; - av_strerror(ret, errbuf, sizeof(errbuf)); + if (ret < 0 && (ret != AVERROR_EOF || ret != AVERROR(EAGAIN))) { + char errbuf[128]; + av_strerror(ret, errbuf, sizeof(errbuf)); - av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf); - break; - } + av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf); + break; } /* dump report by using the output first video and audio streams */ |