aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-07 17:25:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-07 17:25:38 +0100
commit8993b5969ad1106df28f1128ed2fb2a18ba39989 (patch)
tree108b790208de68d6dd8dc3ec51079515977e808a /ffmpeg.c
parent90552407613d06d1c0f5a196e1d5844eeb98ce65 (diff)
downloadffmpeg-8993b5969ad1106df28f1128ed2fb2a18ba39989.tar.gz
Make sure the first q press doesnt f*ck up the protocols and thus written files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 445b57b550..922aadc6ec 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -509,7 +509,8 @@ static int read_key(void)
static int decode_interrupt_cb(void)
{
- return q_pressed || (q_pressed = read_key() == 'q');
+ q_pressed += read_key() == 'q';
+ return q_pressed > 1;
}
static int ffmpeg_exit(int ret)