ffplay: decrease video picture queue size to 3

It was raised to 4 because of a theoretical issue, if we ensure that we do not
return from the display function without popping one picture from the queue,
then its OK to use the old size.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: factorize clock functions

There should be no change in functionality.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: if playing only audio or video only, show the master clock diff in status line

Showing A-V diff has no use if there is no audio and video stream, but showing
the audio or video clock difference to the master clock can be useful.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: fix compute_target_delay to better handle frames with long durations

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: only update pts if not redisplaying a frame

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: use more sane frame timer resetting logic

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: use 0 frame delay if redisplaying an already displayed frame

With the previous patches this finally fixes ticket #1707.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: do not allow wider window than 16383

SDL surface pitch is 16bit, to avoid possible overflows, we limit the window
width to 16383. Fixes ticket #2428.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: detect when the created overlay buffers are not valid for the wanted overlay height

Fixes cases when the picture height was bigger than the maximum supported
overlay height...

Signed-off-by: Marton Balint <cus@passwd.hu>
use my full first name instead of short one in copyrights
vda_h264_dec: remove check_format

Since this function cannot work anymore, this patch simply removes it.
network: factor out bind-listening code

Introduce ff_listen_bind, to be shared with the other non-tcp
network protocols.
network: factor out connect-listening code

Introduce ff_listen_connect, to be shared with the other
non-tcp network protocols.
lavc/avcodec: decodimg → decoding.
lavfi/mp/mcdeint: avoid uninited data read

Do not read padding or out-of-buffer values when computing the output
value for a pixel close to the image buffer edge.

This avoids non visible artifacts which affected the output checksum.

See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi/mp/mcdeint: avoid uninited data read
Date: Thu, 30 May 2013 18:57:14 +0200
lavfi: port mcdeint filter from libmpcodecs
tests: add mcdeint tests
lavfi/mp: drop mcdeint wrapper

It was ported to a native libavfilter filter.
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: detect when the created overlay buffers are not valid for the wanted overlay height
  ffplay: do not allow wider window than 16383
  ffplay: use 0 frame delay if redisplaying an already displayed frame
  ffplay: use more sane frame timer resetting logic
  ffplay: only update pts if not redisplaying a frame
  ffplay: fix compute_target_delay to better handle frames with long durations
  ffplay: if playing only audio or video only, show the master clock diff in status line
  ffplay: factorize clock functions
  ffplay: decrease video picture queue size to 3

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tta: use get_unary()

Signed-off-by: Paul B Mahol <onemda@gmail.com>