mencoder: Finish encoding only when audio and video reached EOF.

This should fix the symptoms of issues #2159 and #2160,
but there are other underlying issues with A-V sync
and interleaving that caused them and remain unfixed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36905 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix crashes with -novideo.

Mostly caused by trying to set sh->ds, which
is completely pointless since it's already set
by the new_sh_* functions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36906 b3059339-0415-0410-9bf9-f77b7e298cf2
demuxers: remove pointless sh->ds assignments.

The new_sh_* functions have been fixed a long time
ago to do this.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36907 b3059339-0415-0410-9bf9-f77b7e298cf2
Add some extra checks to avoid potential crashes.

Should avoid the issues described in #2127.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36908 b3059339-0415-0410-9bf9-f77b7e298cf2
Add additional sanity checks.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36909 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: error out when no FFmpeg is detected.

It currently will not compile. It should be possible
to reduce the dependency to only libavutil again,
but if nobody requests this feature it seems not
worth the effort.
See also issue #2122.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36910 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix issue with Win32 GUI default preferences.

Don't (mis)use option variables to set defaults (and then don't use
them when actually setting the defaults in the preferences dialog).

Set them directly (and correctly) instead, and use proper symbolic
constants.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36911 b3059339-0415-0410-9bf9-f77b7e298cf2
Don't automatically apply the Win32 GUI preferences' defaults.

Just present them and let the user decide whether to apply or to cancel.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36912 b3059339-0415-0410-9bf9-f77b7e298cf2
Be pedantic about argument.


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

This is missing in r36913.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36914 b3059339-0415-0410-9bf9-f77b7e298cf2
Set correct position for audio delay slider in the trackbar.

The position must be set unconditionally.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36915 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Adjust indent.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36916 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix bug with audio delay slider in Win32 GUI.

The slider doesn't depend on option extrastereo,
it has to be available at all times.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36917 b3059339-0415-0410-9bf9-f77b7e298cf2
Enable setting full audio delay value range.

The option allows a range of -100..100.

Additionally, set the step increment (X11/GTK)
resp. line size (Win32) to 0.1.


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

Additionally, merge definition and initialization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36919 b3059339-0415-0410-9bf9-f77b7e298cf2
Set the step increment for panscan to 0.1.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36920 b3059339-0415-0410-9bf9-f77b7e298cf2
Limit fps to a (hopefully) reasonable value.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36921 b3059339-0415-0410-9bf9-f77b7e298cf2
Set the step increment for subdelay to 0.1.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36922 b3059339-0415-0410-9bf9-f77b7e298cf2
Enable setting full subpos value range.

The option allows a range of 0..150.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36923 b3059339-0415-0410-9bf9-f77b7e298cf2
Adjust range and step increment of subfps to fps.


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