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
jpeg2000: make sure s->numXtiles / s->numYtiles are reset when tile is deallocated

This keeps the structure fields more consistent after cleanup

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavc/avpacket: fill padding area on side data split.

The padding data is assumed to be 0 in several places, notably in
subtitles. This problem was not detected with fate-sub-srt test because
the first element of the side data (x1) is 0 in the test, so the
trailing side data present in the packet wasn't read by the decoder. The
issue can be observed with a large enough x1.

It is also noted in FF_INPUT_BUFFER_PADDING_SIZE doxy that MPEG
bitstreams require that padding with 0, so it might fix other issues.
lavf/webvttdec: save cue id and settings as side data

Currently the WebVTT demuxer parses the cues but throws away
the cue id (the optional first line of the cue) and cue
settings (the optional rendering instructions that follow
the timestamp).

However, in order to write inband text tracks (to WebM
files), the entire cue payload from the WebVTT source must
be preserved.

This commit makes no change to the data part of the output
buffer packet (where the actual cue text is stored), but
does add the cue id and settings as a side data items, if
they're present in the cue. Existing code that cares only
about the data part of the packet can continue to ignore the
side data.

There are two new packet data type flags,
AV_PKT_DATA_WEBVTT_IDENTIFIER and
AV_PKT_DATA_WEBVTT_SETTINGS.
lavf/webvttdec: factorize identifier and settings side data code.
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.
Fix libcdio-paranoia detection.

Fixes ticket #2614.
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