stream_pvr: Use sizeof() to get destination buffer size.
The code in lines 382/384 used the wrong constant.
Fixes bug #2066.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34895 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Check if SCTP is available

  Test for SCTP and remove it from the list of libavformat
protocols in case the test did not succeed or the feature
was explicitly disabled.

  Unconditionally trying to build it, as it was done before
if you had a new enough libavformat version that contains
that feature, is obviously not a good idea.

  This patch is closely based on a patch from Johan Andersson.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34896 b3059339-0415-0410-9bf9-f77b7e298cf2
Allow direct rendering for non-reference frames in H.264.
This might work for other codecs that currently have DR
disabled, but H.264 is the only one tested so far.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34897 b3059339-0415-0410-9bf9-f77b7e298cf2
Align glMapBuffer result.
Mesa for some silly reason returns a pointer that is only
8 byte aligned.
Fixes -dr and force-pbo crashes (on e.g. x86) and bad output
(on e.g. PPC).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34898 b3059339-0415-0410-9bf9-f77b7e298cf2
Document -dr influence on video display speed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34899 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix -fs with SDL-based vo gl.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34900 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix direct rendering for H.264.

H.264 files without B-frames would fail to play
completely with "Too many buffered pts" messages.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34901 b3059339-0415-0410-9bf9-f77b7e298cf2
Add some dv video fourcc's found by Piotr Bandurski.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34902 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not override mpctx->stream during free_demuxer.
In case of e.g. the chained MPEG-PS in mov demuxer,
that will end up freeing the wrong stream later on.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34903 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not provide multiple B-frames for direct rendering.

Fixes some extreme stuttering with some H.264 samples.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34904 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not return void type and remove broken duplicate code.

The second copy of that code would only be run after
we already tried to use mpi pointer, which means in the
case it was supposed to handle we had already crashed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34905 b3059339-0415-0410-9bf9-f77b7e298cf2
Never default to force-pbo on non-x86.

We end up using the system memcpy there and it
tends to be far too slow.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34906 b3059339-0415-0410-9bf9-f77b7e298cf2
vo_gl: collect some frame statistics for DR.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34907 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not keep b_count/ip_count stuck at large numbers.

Fixes nonref_dr mode getting stuck at disabled.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34908 b3059339-0415-0410-9bf9-f77b7e298cf2
Improve -dr descriptions.

The Changelog info was not really correct, the speedup was
due to avoiding a slowdown caused by force-pbo which suffers
from too slow memcpy on PPC.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34909 b3059339-0415-0410-9bf9-f77b7e298cf2
Add result argument to second FcFontMatch argument, just like for the first.

Fixes a possible assertion in fontconfig.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34910 b3059339-0415-0410-9bf9-f77b7e298cf2
Initialize "result" variable since FcFontMatch only sets it on failure.

This is currently kind of pointless since we don't actually
use the result, but it is better to not take any risks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34911 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix hardware-acceleration broken by nonref_dr support.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34912 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove pointless global variables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34913 b3059339-0415-0410-9bf9-f77b7e298cf2
Add some additional checks to ensure subtractions do not overflow.

Patch by Benoît Thébaudeau [benoit thebaudeau advansee com].


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34914 b3059339-0415-0410-9bf9-f77b7e298cf2