Commit 5417efbb authored by Anton Khirnov's avatar Anton Khirnov

avconv: print an error message when demuxing fails.

Also exit in such a case if -xerror is used.

Fixes bug 329.
parent 0b40153d
......@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment