You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avconv: print an error message when demuxing fails.
Also exit in such a case if -xerror is used. Fixes bug 329.
This commit is contained in:
5
avconv.c
5
avconv.c
@ -3000,6 +3000,11 @@ static int transcode(void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
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;
|
input_files[file_index]->eof_reached = 1;
|
||||||
|
|
||||||
for (i = 0; i < input_files[file_index]->nb_streams; i++) {
|
for (i = 0; i < input_files[file_index]->nb_streams; i++) {
|
||||||
|
Reference in New Issue
Block a user