ffplay: do not wait for flushing the picture queue on flush packet

It is no longer necessary. Also do frame timer and video current pos reset in
the main thread because with the wait removed, the timing would not be optimal
in the read thread.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: remove no longer necessary codec flush

It was introduced in c2e8691c07ca52de7b6b00ba8f2b30c56fd786d7, but since we no
longer no longer provide a custom get_buffer callback, the original cause of
the issue is gone.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: factor out function setting default window size

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: set default window size before starting audio

Fixes ticket #2381.

Signed-off-by: Marton Balint <cus@passwd.hu>
avutil/log: merge calls that set ansi color and print the string

about 1/3 or so faster

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/log: skip setting color for default (AV_LOG_INFO) level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/log: skip IO calls on empty strings

These occur when no context is set for example, thus they are common

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dcadec: Decode LFE to avoid adding random data when downmixing with LFE

Signed-off-by: Tim Walker <tdskywalker@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
avutil/utils: run ff_check_pixfmt_descriptors() only when ASSERT_LEVEL is > 0

this safes about 0.1ms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swscale/utils: fill xyz tables only when they will be used

makes the first call to sws_getContext() 1ms faster

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/mov: use rfps_add_frame() only for video

it makes no sense for other streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/utils: reject poorly fitting rfps values earlier

This avoids collecting statistics for rfps values that very likely
will get rejected later.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  dcadec: Decode LFE to avoid adding random data when downmixing with LFE

See: 6e7de1144436a6871fdbd7859f3a2ece6e89d9fb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
avformat/utils: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/opt: factor set_string_image_size() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/opt: factor set_string_video_rate() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/opt: factor set_string_color() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/opt: Implement av_opt_set_defaults* in O(N) instead of O(N²) time

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

* cus/stable:
  ffplay: set default window size before starting audio
  ffplay: factor out function setting default window size
  ffplay: remove no longer necessary codec flush
  ffplay: do not wait for flushing the picture queue on flush packet

Merged-by: Michael Niedermayer <michaelni@gmx.at>
vp9: split x86 assembly in two files.

(And in future, loopfilter or intra pred could be put in their own
respective files also.)