diff --git a/avconv.c b/avconv.c
index 9df5bb30fc507c55472ac0cdb2ac96e84e9c2393..7142ab41e945b989105305958055bb467d9d5eaa 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++) {