summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-08 17:20:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-08 17:26:43 +0200
commit570fb660d6139430cc9141bd8138d68815f4182d (patch)
treea337fda0a2ab15135da55ecf3d224fb662131d06 /ffmpeg.c
parentfb795585160a6ce630276802adba27e8d8e363d6 (diff)
ffmpeg: make q_pressed volatile, it can be changed from signal handlers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;