ffplay: requeue last picture on forced video refresh

Fixes ticket #1609.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: replace SDL_delay in read thread with SDL_CondWait

When the audio queue was empty, it was not filled until the 10ms delay expired
in the read thread. This patch changes the delay method with a condition wait,
which reacts to an empty queue a lot faster, therefore the audio buffer
underruns become less common especially after seeking.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: only free vfilters on exit

Freeing it in the end of the video thread is not a good idea, because we still
may need the filter names for the next video thread, in order to apply the
filters after chaning the video stream.

Signed-off-by: Marton Balint <cus@passwd.hu>
Rename missed cases of FF_OPT_TYPE_* to AV_OPT_TYPE_*

Signed-off-by: Martin Storsjö <martin@martin.st>
crypto: Remove a stray double space

Signed-off-by: Martin Storsjö <martin@martin.st>
Fix compilation with yasm-0.6.2.
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  crypto: Remove a stray double space
  Rename missed cases of FF_OPT_TYPE_* to AV_OPT_TYPE_*

Conflicts:
	libavfilter/vf_delogo.c
	libavfilter/vf_lut.c
	libavfilter/vsrc_testsrc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'stev47/master'

* stev47/master:
  cpia: move reget_buffer after header check

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: only free vfilters on exit
  ffplay: replace SDL_delay in read thread with SDL_CondWait
  ffplay: requeue last picture on forced video refresh

Merged-by: Michael Niedermayer <michaelni@gmx.at>
ansi: remove misplaced return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ansi: support escaped codes where last argument is zero

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ansi: support 256-colors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ansi: erase screen on first frame

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libmpcodecs: remove unused and half existing vo_fs variable

It breaks linking with suncc sometimes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix libx264 profile listing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf: add missing new line to some error messages

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavc: add missing new line to some messages

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavfi/vf_frei0: add missing new line to some error messages

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf: add missing new line to some error messages 2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
fix flv new stream handling after head already parsed

This fixes stream lookup in flv demuxer. When used with librtmp
protocol streams are sometimes added after head arrived. If the
first stream added in flv header reader is Audio stream then it
is messed with Video stream added later in the code patched.
The result is I have 2 Audio streams (first of them is said to have
a video codec like h264) instead of Audio/Video pair.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>