mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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.
This commit is contained in:
parent
9c99bc433e
commit
62b745a6d3
3
ffmpeg.c
3
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)
|
||||
|
Loading…
Reference in New Issue
Block a user