[FFmpeg-cvslog] avconv: print an error message when demuxing fails.
Anton Khirnov
git at videolan.org
Wed Jul 18 01:53:39 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jul 16 00:22:05 2012 +0200| [5417efbbf313781f5bac38daee95f62c671c5d63] | committer: Anton Khirnov
avconv: print an error message when demuxing fails.
Also exit in such a case if -xerror is used.
Fixes bug 329.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5417efbbf313781f5bac38daee95f62c671c5d63
---
avconv.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/avconv.c b/avconv.c
index 9df5bb3..7142ab4 100644
--- a/avconv.c
+++ b/avconv.c
@@ -3000,6 +3000,11 @@ static int transcode(void)
continue;
}
if (ret < 0) {
+ if (ret != AVERROR_EOF) {
+ print_error(is->filename, ret);
+ if (exit_on_error)
+ exit_program(1);
+ }
input_files[file_index]->eof_reached = 1;
for (i = 0; i < input_files[file_index]->nb_streams; i++) {
More information about the ffmpeg-cvslog
mailing list