[FFmpeg-cvslog] Fix seting of decode_interrupt_cb()

Michael Niedermayer git
Mon Mar 7 18:58:12 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar  7 17:23:32 2011 +0100| [90552407613d06d1c0f5a196e1d5844eeb98ce65] | committer: Michael Niedermayer

Fix seting of decode_interrupt_cb()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90552407613d06d1c0f5a196e1d5844eeb98ce65
---

 ffmpeg.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index f920ac7..445b57b 100644
--- 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();




More information about the ffmpeg-cvslog mailing list