Fix seting of decode_interrupt_cb()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Mar 2011 16:23:32 +0000 (17:23 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Mar 2011 16:23:32 +0000 (17:23 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index f920ac7..445b57b 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2505,8 +2505,9 @@ static int transcode(AVFormatContext **output_files,
         print_sdp(output_files, nb_output_files);
     }
 
-    if (!using_stdin && verbose >= 0) {
-        fprintf(stderr, "Press [q] to stop encoding\n");
+    if (!using_stdin) {
+        if(verbose >= 0)
+            fprintf(stderr, "Press [q] to stop encoding\n");
         url_set_interrupt_cb(decode_interrupt_cb);
     }
     term_init();