From 570fb660d6139430cc9141bd8138d68815f4182d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 8 Oct 2011 17:20:17 +0200 Subject: [PATCH] ffmpeg: make q_pressed volatile, it can be changed from signal handlers. Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 741b74c58b..5b0610cf7e 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -146,7 +146,7 @@ static int audio_volume = 256; static int exit_on_error = 0; static int using_stdin = 0; static int run_as_daemon = 0; -static int q_pressed = 0; +static volatile int q_pressed = 0; static int64_t video_size = 0; static int64_t audio_size = 0; static int64_t extra_size = 0;