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>
fate: use TARGET_SAMPLES in mcdeint tests

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '28306e6d620c109ddd672f7243adfbc2bbb3b18f'

* commit '28306e6d620c109ddd672f7243adfbc2bbb3b18f':
  network: factor out bind-listening code
  use my full first name instead of short one in copyrights

Conflicts:
	libavformat/tcp.c

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

* qatar/master:
  network: factor out connect-listening code

Conflicts:
	libavformat/network.h
	libavformat/tcp.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
use Kostyas full name in copyrights

This fixes 2 files that where not part of the original change
See: de421b208578386bfb4416c67c9922877e670049

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavu: Add SHA-2 512 hashing

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/sha512: Reshuffle Maj() operands

This reduces dependancy chains and improves speed by about 2%

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Fix compilation of libavcodec/tiff.c
tta: move code that will be shared with encoder to separate file

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tiff: K&R formatting cosmetics
cpu: Restructure code to avoid pointless ret variable indirection

libavutil/cpu.c:133:9: warning: unused variable ‘ret’ [-Wunused-variable]
nsvdec: Remove commented-out debug cruft
swscale: ppc: Remove commented-out define cruft
avutil/sha: reorder Maj arguments

about 1% speedup

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vmd: fix mode 3 decoding
vmd: decode videos with no LZ buffer size provided - they might not need it

The buffer is used for an additional pass of frame compression, so videos
can be coded without ever using it (and some are coded so indeed, e.g. in
Woodruff and the Schnibble of Azimuth game).
tools/ffeval: Check return value of av_expr_parse_and_eval()

Fixes CID1026745

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