ffmpeg_opt: Give the user a hint on how to ignore unsupported streams
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 20 May 2015 23:09:04 +0000 (01:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 20 May 2015 23:10:53 +0000 (01:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg_opt.c

index e64c829..5abf7c3 100644 (file)
@@ -2022,8 +2022,12 @@ loop_end:
                     av_log(NULL, ignore_unknown_streams ? AV_LOG_FATAL : AV_LOG_WARNING,
                            "Cannot map stream #%d:%d - unsupported type.\n",
                            map->file_index, map->stream_index);
-                    if (!ignore_unknown_streams)
+                    if (!ignore_unknown_streams) {
+                        av_log(NULL, AV_LOG_FATAL,
+                               "If you want unsupported types ignored instead"
+                               "of failing, please use the -ignore_unknown option\n");
                         exit_program(1);
+                    }
                 }
             }
         }