diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-07 17:25:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-07 17:25:38 +0100 |
commit | 8993b5969ad1106df28f1128ed2fb2a18ba39989 (patch) | |
tree | 108b790208de68d6dd8dc3ec51079515977e808a | |
parent | 90552407613d06d1c0f5a196e1d5844eeb98ce65 (diff) | |
download | ffmpeg-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>
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |