[FFmpeg-devel] [PATCH 1/3] ffmpeg: set tty mode and signals after parsing options.

Nicolas George george at nsup.org
Sun Mar 13 12:07:46 CET 2016


Signed-off-by: Nicolas George <george at nsup.org>
---
 ffmpeg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


It seems more logical, and the next patch does not work without.


diff --git a/ffmpeg.c b/ffmpeg.c
index 9a14294..1887946 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4306,8 +4306,6 @@ int main(int argc, char **argv)
 
     show_banner(argc, argv, options);
 
-    term_init();
-
     /* parse options and open all input/output files */
     ret = ffmpeg_parse_options(argc, argv);
     if (ret < 0)
@@ -4330,6 +4328,8 @@ int main(int argc, char **argv)
 //         exit_program(1);
 //     }
 
+    term_init();
+
     current_time = ti = getutime();
     if (transcode() < 0)
         exit_program(1);
-- 
2.7.0



More information about the ffmpeg-devel mailing list