Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-24 12:52:55 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-04-24 17:46:03 +0400
commit62b745a6d3411c584bbac08374d7547060440809 (patch)
tree0ec125e4ff29bec2e9224314d81e5f7bd88cd3e7 /ffmpeg.c
parent9c99bc433e5fbb266030a7331490afa3c3e8b6c4 (diff)
ffmpeg: do not report EOF as an error.
Not all processing goes through filters, so processing can continue even when all filtergraphs have reached EOF on all sinks.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d1ed3c67de..069ada8d52 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3621,7 +3621,8 @@ static int transcode(void)
}
// fprintf(stderr,"read #%d.%d size=%d\n", ist->file_index, ist->st->index, pkt.size);
- if (output_packet(ist, &pkt) < 0 || poll_filters() < 0) {
+ if (output_packet(ist, &pkt) < 0 ||
+ ((ret = poll_filters()) < 0 && ret != AVERROR_EOF)) {
av_log(NULL, AV_LOG_ERROR, "Error while decoding stream #%d:%d\n",
ist->file_index, ist->st->index);
if (exit_on_error)