audio: preallocate audio buffers on resize

This avoids too many realloc() calls if the caller is appending to an
audo buffer. This case is actually quite noticeable when using something
that buffers a large amount of audio.
input: handle multi-combinations as key sequences

The input code always supported combinations of multiple keys (even in
MPlayer, although there the code was active really only for mouse
buttons). This was arcance and also made the code more complicated. I
only know of a single person who ever made use of this feature.

Remove this feature, and repurpose some of the support code (e.g.
parsing, display of key combinations, etc.) to handle such multi-
combinations as sequences, instead of keys to be pressed at the same
time. This is much simpler and implements the feature requested in
github issue #718.

This commit will probably cause a bunch of regressions, since the input
handling code has some weird corner cases. I couldn't find any problems
when testing, though.
input: close window when window close button is pressed with --input-test

The window close button is usually mapped to the CLOSE_WIN pseudo-key.
Until now, --input-test treated this pseudo-key like any other key (like
the rest of the input handling code), so you couldn't close the window
in this mode. The manpage had silly instructions and warnings how to
deal with this.

Just always quit when CLOSE_WIN is received, and improve the
instructions.
input: move a function
input: slightly simplify mouse dispatching

I admit I don't really understand anymore why this was needed. Delete it
anyway. It was added with commit 42fa7cbbf.
input: rename a variable

Squashing this with the following commit would be confusing.
input: simplify by not tracking key up/down states

We only need to track key up/down for a single key. There may be some
minor loss of robustness, but this can (probably) happen only if a VO or
user sends strange or complicated sequences of events. In the normal
case, what we do is more than enough. Most simplification comes from the
fact that mpv is not a game console, and users normally execute only one
action at once.
input: keycodes: reorder flags

MP_KEY_EMIT_ON_UP and MP_NO_REPEAT_KEY are not modifiers, just static
flags that some keycodes set.

This is just a cosmetic change.
input: remove minor redundancy
input: don't wakeup core if key repeat is requested but not possible

There's no need to wakeup the core in this situation.
manpage: clarify one aspect of multi-keybindings

The explanation is kind of obvious, but on the other it'd probably be
confusing not to clarify this.
input: ignore modifiers on MOUSE_LEAVE

Just in case something adds shift/alt/ctrl state to it.
input: remove minor code duplication
input: discard key history when a key is mapped

This is for the sake of multi-key combinations (see github issue #718).
Now a multi-key sequence isn't matched if any of the previous keys were
actually mapped.
input: make key binds order-independent again

This is for the sake of multi-key commands again. This could break:

   SPACE ignore
   SPACE-SPACE command

while this worked:

   SPACE-SPACE command
   SPACE ignore

The reason being that if the shorter command was first in the list,
it would obviously match, and searching was stopped.
lua: add example to rebuild the status line

This can be used to easily extent the status line for one's own needs.

I'm not experienced with lua so a few things could probably be done a
better way.
encode: disable keep-open when encoding
manpage: add notes when to use/not use certain AO and VO drivers
vf_eq: remove slow inline asm

Compiled with -O2, the C code runs just as far (or even slightly faster)
then the MMX inline asm.
vf_ilpack: remove inline asm

This makes it multiple times slower. However, the output format (packed
YUV) isn't handled efficiently by anything to begin with, and I have no
clue we even have this filter. I guess it's one of these filters which
find some use sometimes, but are not of higher importance, which
justifies removing the faster inline asm.