mplayer.git
3 weeks agoconfigure: check that stdatomic.h actually works correctly. master
reimar [Sun, 30 Aug 2020 17:44:21 +0000 (17:44 +0000)]
configure: check that stdatomic.h actually works correctly.

In particular, that it does not create e.g. dependencies on
libatomic. In that case the compat fallback will actually work better.

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

3 weeks agoChangelog: update for changes in default Arm compilation options
reimar [Sun, 30 Aug 2020 15:54:24 +0000 (15:54 +0000)]
Changelog: update for changes in default Arm compilation options

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

3 weeks agoconfigure: allow using --enable-runtime-cpudetection for Arm builds.
reimar [Sun, 30 Aug 2020 15:51:28 +0000 (15:51 +0000)]
configure: allow using --enable-runtime-cpudetection for Arm builds.

This is mostly to allow undoing the effects of the previous
patch which adds -march=native if it is not set

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

3 weeks agoconfigure: Fix arm CPU extension selection
reimar [Sun, 30 Aug 2020 15:27:41 +0000 (15:27 +0000)]
configure: Fix arm CPU extension selection

If runtime cpudetection is off, we need to set all of
march, mcpu and mfpu.
Otherwise compiling on e.g. Rasbian will result in
a build with no NEON support even when the CPU
supports it.

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

4 weeks agoconfigure: Fix build with newer internal FFmpeg
al [Fri, 21 Aug 2020 21:13:38 +0000 (21:13 +0000)]
configure: Fix build with newer internal FFmpeg

In FFmpeg commit 1841921277 A53 closed caption parsing was separated
into a module of its own and is now shared by some codecs.

Activate that module.

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

3 months agoRemove usage of memalign.
reimar [Sun, 14 Jun 2020 17:55:21 +0000 (17:55 +0000)]
Remove usage of memalign.

Switch to av_malloc instead.
Only vo_vesa remains using memalign as it requests 64-byte alignment,
which is more than av_malloc provides.
The fallback for memalign has been plain malloc, which meant crashes
on e.g. Win32 where malloc is not sufficiently aligned.

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

3 months agoosd.c: Disable SSE2 optimization on 32-bit Windows.
reimar [Sat, 6 Jun 2020 15:13:32 +0000 (15:13 +0000)]
osd.c: Disable SSE2 optimization on 32-bit Windows.

It seems to cause random crashes, and fixing it will
take some time as I am not able to reproduce.

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

3 months agomenu.c: add missing libavutil/mem.h include for DECLARE_ALIGNED
reimar [Sat, 6 Jun 2020 15:13:31 +0000 (15:13 +0000)]
menu.c: add missing libavutil/mem.h include for DECLARE_ALIGNED

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

3 months agoconfigure: fix FFmpeg compilation when zlib is not available.
reimar [Sat, 6 Jun 2020 15:13:29 +0000 (15:13 +0000)]
configure: fix FFmpeg compilation when zlib is not available.

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

3 months agomenu.c: optimize libmenu box drawing.
reimar [Thu, 28 May 2020 18:25:15 +0000 (18:25 +0000)]
menu.c: optimize libmenu box drawing.

As the lines it draws are all identical it is enough to
allocate a single line and draw with stride 0.
Admittedly it would be even more efficient to have
a special function for this, but that would be
enough extra effort to not seem worth it.

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

3 months agoFix crashes due to insufficient alignment.
reimar [Wed, 27 May 2020 20:25:01 +0000 (20:25 +0000)]
Fix crashes due to insufficient alignment.

Images blended on top of the video via draw_alpha
need to be aligned to 16 bytes for the new SSE2
accelerated routines.
Fix the menu code to provide that 16 bytes alignment.
The menu_draw_box code was actually broken even
before the SSE2 code since it did not request the
even the 8 byte alignment even the pre-SSE2 code
already needed.

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

3 months agoconfigure: Make strip tool configurable
al [Tue, 26 May 2020 20:33:56 +0000 (20:33 +0000)]
configure: Make strip tool configurable

Initially based on a patch by Hank Wang >ex0804992 at itri org tw<

Use case of the original author:
When cross-compiling use the cross-strip for make install.

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

3 months agoconfigure: Disable FFmpeg encoder wrappers for MediaFoundation
al [Sat, 23 May 2020 12:46:49 +0000 (12:46 +0000)]
configure: Disable FFmpeg encoder wrappers for MediaFoundation

Fix build with internal FFmpeg on systems without MediaFoundation.

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

6 months agoFix linking error of the non-GUI Wine build.
ib [Tue, 3 Mar 2020 17:33:32 +0000 (17:33 +0000)]
Fix linking error of the non-GUI Wine build.

There is an undefined reference to 'ExtractIconA'.

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

6 months agoFix compilation of the Win32 GUI Wine build.
ib [Tue, 3 Mar 2020 10:47:07 +0000 (10:47 +0000)]
Fix compilation of the Win32 GUI Wine build.

Add missing definition of gui_vinfo.

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

6 months agoFix compilation of non-X11 OpenGL video output driver.
ib [Tue, 3 Mar 2020 10:15:22 +0000 (10:15 +0000)]
Fix compilation of non-X11 OpenGL video output driver.

Patch by Stephen Sheldon, sfsheldo gmail com.

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

7 months agocodecs.conf: add ffcanopus hqx codec, fixes trac #2327
compn [Fri, 21 Feb 2020 07:54:35 +0000 (07:54 +0000)]
codecs.conf: add ffcanopus hqx codec, fixes trac #2327

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

7 months agocodecs.conf: add ffsiren for vivo and msn audio files
compn [Fri, 21 Feb 2020 07:23:13 +0000 (07:23 +0000)]
codecs.conf: add ffsiren for vivo and msn audio files

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

7 months agoImprove the X error messages.
ib [Sun, 9 Feb 2020 21:32:12 +0000 (21:32 +0000)]
Improve the X error messages.

Be more detailed and be aware of extensions.

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

7 months agoRemove pcm from the GUI's audio driver list.
ib [Thu, 6 Feb 2020 16:47:43 +0000 (16:47 +0000)]
Remove pcm from the GUI's audio driver list.

Although this driver works with the GUI (even without additional
configuration), the GUI does not get any events, which causes it
to neither react nor be able to be stopped during playback.

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

7 months agoRevert r38168.
ib [Thu, 6 Feb 2020 16:41:51 +0000 (16:41 +0000)]
Revert r38168.

Although these drivers work with the GUI (even without additional
configuration), the GUI does not get any events, which causes it
to neither react nor be able to be stopped during playback.

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

7 months agoRename gl_vinfo gui_vinfo.
ib [Thu, 6 Feb 2020 15:41:36 +0000 (15:41 +0000)]
Rename gl_vinfo gui_vinfo.

This rather clarifies the purpose of the variable.

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

7 months agoFix passing visual information to OpenGL video output driver for X11.
ib [Thu, 6 Feb 2020 15:36:06 +0000 (15:36 +0000)]
Fix passing visual information to OpenGL video output driver for X11.

Enabling the GUI and starting the plain MPlayer causes a segmentation fault.

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

7 months agoPass visual information to OpenGL video output driver for X11.
ib [Tue, 4 Feb 2020 18:21:39 +0000 (18:21 +0000)]
Pass visual information to OpenGL video output driver for X11.

The GUI and the OpenGL video output driver for X11 choose different
visuals which results in a BadMatch error from XChangeWindowAttributes()
in x11_common.c.

Since the GUI has to choose the visual first to create its main window,
it is necessary to tell it the drivers so that they can use this same
(hopefully suitable) visual.

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

7 months agoAdd VOCTRL_GUISUPPORT.
ib [Tue, 4 Feb 2020 14:03:18 +0000 (14:03 +0000)]
Add VOCTRL_GUISUPPORT.

The video output driver supports it.

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

7 months agoReplace variable gtkLoadFullscreen by MPlayer's fullscreen.
ib [Tue, 4 Feb 2020 13:58:41 +0000 (13:58 +0000)]
Replace variable gtkLoadFullscreen by MPlayer's fullscreen.

This allows using command line option -fs in addition to
GUI option load_fullscreen.

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

7 months agoFix fullscreen button.
ib [Tue, 4 Feb 2020 13:54:39 +0000 (13:54 +0000)]
Fix fullscreen button.

When starting in fullscreen mode without video window, it must not be
allowed to change the fullscreen button, because otherwise the button
(no fullscreen anymore) and the mode (still fullscreen) do not match.

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

7 months agostream/http: Handover redirects-to-HTTPS to other stream modules
al [Sun, 2 Feb 2020 08:17:35 +0000 (08:17 +0000)]
stream/http: Handover redirects-to-HTTPS to other stream modules

As we do not support HTTPS in our stream http module, allow to
smoothly handover the HTTPS location to another stream module.
At this time that other module would probably be stream_ffmpeg.

Before this change we would, e.g. in stream_ffmpeg, start again
at the initial URL and likely follow again all redirects.

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

7 months agostream_ffmpeg: Handle HTTP protocol too
al [Sun, 2 Feb 2020 08:15:13 +0000 (08:15 +0000)]
stream_ffmpeg: Handle HTTP protocol too

This change doesn't usually affect the stream module choice for http,
because the other http handling protocols will be tried first.

Making stream_ffmpeg handle http too, particularly fixes the use case
where a http connection redirects to an https URL.

While a redirect from http to https will be handled by stream_ffmpeg
now, the reversed redirect from https to http will not be handled by
the other stream modules in MPlayer because FFmpeg's http(s) client
handles redirects internally.

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

7 months agoAdd VOCTRL_GUISUPPORT to video output drivers which write to files.
ib [Sat, 1 Feb 2020 00:53:02 +0000 (00:53 +0000)]
Add VOCTRL_GUISUPPORT to video output drivers which write to files.

These drivers can be used within the GUI without any additional configuration.

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

7 months agoChange the order of two drivers.
ib [Sat, 1 Feb 2020 00:39:26 +0000 (00:39 +0000)]
Change the order of two drivers.

Place the null video driver behind the "real" output drivers
(purely for cosmetic reasons).

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

7 months agoRemove the (broken?) mpegpes from the GUI's audio driver list.
ib [Sat, 1 Feb 2020 00:31:52 +0000 (00:31 +0000)]
Remove the (broken?) mpegpes from the GUI's audio driver list.

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

7 months agoIncrease the column width for the driver names.
ib [Sat, 1 Feb 2020 00:27:07 +0000 (00:27 +0000)]
Increase the column width for the driver names.

Some names are truncated.

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

7 months agoClear screen when switching to fullscreen mode using -vo x11.
ib [Fri, 31 Jan 2020 12:27:09 +0000 (12:27 +0000)]
Clear screen when switching to fullscreen mode using -vo x11.

The areas surrounding the XImage must be deleted if the window
is larger than the XImage.

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

7 months agoFix wrong video window size.
ib [Fri, 31 Jan 2020 12:15:13 +0000 (12:15 +0000)]
Fix wrong video window size.

The video window must only return to its initial size when fullscreen
playback ends. So pass a distinct argument for this case, because
pressing the fullscreen button to return to windowed mode also passes 0,
in which case the video window must return to the size of the video.

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

8 months agostream_ffmpeg: Add gopher to the supported protocols
al [Mon, 20 Jan 2020 22:52:42 +0000 (22:52 +0000)]
stream_ffmpeg: Add gopher to the supported protocols

Thanks to Vincenzo Nicosia for bringing up the topic and testing
gopher via stream_ffmpeg.

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

8 months agoconfigure: Detect libaom and enable the lavc libaom-av1 decoder
al [Wed, 15 Jan 2020 21:41:39 +0000 (21:41 +0000)]
configure: Detect libaom and enable the lavc libaom-av1 decoder

The codecs.conf entry was already added in SVN r38156 .

This change allows to autodetect/enable the libaom-av1 decoder for
internal FFmpeg.

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

8 months agoconfigure: Detect libdav1d and enable the lavc libdav1d decoder
al [Wed, 15 Jan 2020 21:36:35 +0000 (21:36 +0000)]
configure: Detect libdav1d and enable the lavc libdav1d decoder

The codecs.conf entry was already added in SVN r38155 .

This change allows to autodetect/enable the libdav1d decoder for
internal FFmpeg.

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

8 months agoDOCS/man/en/mplayer: Update limit for lavc threads options
al [Mon, 13 Jan 2020 23:31:19 +0000 (23:31 +0000)]
DOCS/man/en/mplayer: Update limit for lavc threads options

The current decoder limit is at 32 and for encoders it's 16.

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

8 months agoUpdate year.
ib [Wed, 1 Jan 2020 20:25:52 +0000 (20:25 +0000)]
Update year.

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

8 months agocodecs.conf: Bump version
al [Tue, 24 Dec 2019 10:46:23 +0000 (10:46 +0000)]
codecs.conf: Bump version

In SVN r38154 , ffmpeg12vdpau was removed and ffmpeg1vdpau and
ffmpeg2vdpau were added as replacement.

In previous commits AV1 codecs were added, and a lot more changes
were done in 8 years.

Bump codecs.conf, so users with a customized codecs.conf based on
an older version will fallback to the internal version and get a
message about having an outdated codecs.conf lying around.

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

8 months agocodecs.conf: Add AOM AV1 decoder via FFmpeg
al [Tue, 24 Dec 2019 10:43:45 +0000 (10:43 +0000)]
codecs.conf: Add AOM AV1 decoder via FFmpeg

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

8 months agocodecs.conf: Add AV1 decoder dav1d via FFmpeg
al [Tue, 24 Dec 2019 10:41:24 +0000 (10:41 +0000)]
codecs.conf: Add AV1 decoder dav1d via FFmpeg

Thanks to

* Andrew-R (in ticket #2355)
* Sylvain (on mplayer-dev-eng ml)
* Carl Eugen Hoyos (in private communication)

You all provided helpful patches, suggestions and comments!

Fixes part of ticket #2355

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

10 months agocodecs: split ffmpeg12vdpau
reimar [Sun, 17 Nov 2019 16:32:22 +0000 (16:32 +0000)]
codecs: split ffmpeg12vdpau

The combined MPEG1/2 decoder in FFmpeg no longer
supports any hwaccel at all.
Split it into ffmpeg1vpdau and ffmpeg2vdpau.
Only mention ffmpeg2vpdau in docs to reduce confusion
since MPEG1 is really rare.

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

10 months agovo_vdpau: SSE2 optimization of OSD code.
reimar [Sun, 17 Nov 2019 16:32:16 +0000 (16:32 +0000)]
vo_vdpau: SSE2 optimization of OSD code.

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

11 months agodemux_lavf: sanity-check stream ID before using it.
reimar [Fri, 27 Sep 2019 07:29:07 +0000 (07:29 +0000)]
demux_lavf: sanity-check stream ID before using it.

ds->id may have been initialized via -vid option to
a value that does not correspond to a currently
existing stream.
Thus check that it's valid before using it.
Fixes crash when playing mp4 files and
specifying e.g. -vid 7777.
Reported by Raad Haddad (raadfhaddad at gmail)

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

13 months agoFix building with new FFmpeg.
iive [Thu, 22 Aug 2019 14:49:27 +0000 (14:49 +0000)]
Fix building with new FFmpeg.
VP9_QSV decoder was not disabled properly and ended in the codecs_list.c .
Instead of disabling each HW codec individually,
disable all codecs with names containing HW acceleration group
that is not supported.

Fixes ticket #2362.

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

14 months agospudec: Increase image data alignment to 16 bytes.
reimar [Thu, 4 Jul 2019 11:28:02 +0000 (11:28 +0000)]
spudec: Increase image data alignment to 16 bytes.

Allows using SSE2 aligned loads on the data.
Switch to av_malloc and av_freep as well, so
it also works if native malloc has a smaller
default alignment.

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

14 months agoosd_template: fix possible subtitle corruption.
reimar [Thu, 4 Jul 2019 11:28:01 +0000 (11:28 +0000)]
osd_template: fix possible subtitle corruption.

Stride padding of alpha is not guaranteed to be
zerod, which can result in some corruption on the
right border.
Change SSE2 code to fall back to C code for the
last part if width is not a multiple of 16.

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

14 months agoRemove ivtv ao and vo drivers
al [Fri, 28 Jun 2019 21:05:15 +0000 (21:05 +0000)]
Remove ivtv ao and vo drivers

IVTV support is for a long time available through Video4Linux.
The hardware can still be used through the v4l2 vo and ao drivers.

There is still IVTV linux code in a VIDIX driver. This change
doesn't remove the IVTV remnants in the VIDIX source.

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

15 months agokai: check boundaries more strictly
komh [Wed, 29 May 2019 09:57:32 +0000 (09:57 +0000)]
kai: check boundaries more strictly

Suggested by reimar.

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

15 months agokva: check boundaries more strictly
komh [Wed, 29 May 2019 09:56:50 +0000 (09:56 +0000)]
kva: check boundaries more strictly

Suggested by reimar.

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

15 months agovf_eq.c, vf_eq2.c: Add SSE2 support.
reimar [Mon, 27 May 2019 20:02:14 +0000 (20:02 +0000)]
vf_eq.c, vf_eq2.c: Add SSE2 support.

The code is actually identical, it would be
even nicer if it was actually shared.

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

15 months agopullup.c: Add SSE2 support to pullup filtering.
reimar [Mon, 27 May 2019 20:02:13 +0000 (20:02 +0000)]
pullup.c: Add SSE2 support to pullup filtering.

About 2x faster vf_pullup.

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

15 months agoosd_template.c: Add intrinsic based SSE2 support.
reimar [Mon, 27 May 2019 20:02:12 +0000 (20:02 +0000)]
osd_template.c: Add intrinsic based SSE2 support.

Intrinsics are not well liked for good reason,
but it is much faster to implement and compilers
are no longer completely horrible for x86.
Speed is about 2x-3x and it matches the C code instead
of the less accurate MMX code.
Primary motivation is though that MMX is starting to
have worse and worse support in CPUs.
To benchmark, use this command and remove the reading code
from rawvideo and the memcpy_pic from vf_expand.
./mplayer /dev/zero -demuxer rawvideo -rawvideo w=1920:h=1080:format=yuy2 -vo null -osdlevel 3 -benchmark -quiet -frames 50000 -vf expand=osd=1 -subfont-osd-scale 20

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

15 months agoconfigure: update zlib-dependent codec list.
reimar [Sun, 26 May 2019 18:56:32 +0000 (18:56 +0000)]
configure: update zlib-dependent codec list.

Fixes compilation without zlib.

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

15 months agoconfigure: improve aarch64 handling.
reimar [Sun, 26 May 2019 18:56:31 +0000 (18:56 +0000)]
configure: improve aarch64 handling.

Automatically detect 64- vs. 32-bit build
like for other architectures.
Also detect NEON and VFP support correctly.
Lastly, disable inline assembly NEON code
on AARCH64 that only works on 32-bit.

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

15 months agokva: fix buffer overflow
komh [Fri, 24 May 2019 10:42:53 +0000 (10:42 +0000)]
kva: fix buffer overflow

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

16 months agovf_noise: make static array const.
reimar [Tue, 21 May 2019 18:21:41 +0000 (18:21 +0000)]
vf_noise: make static array const.

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

16 months agoAdd check for stdatomic.h
reimar [Mon, 20 May 2019 16:45:17 +0000 (16:45 +0000)]
Add check for stdatomic.h

If not found, try adding the gcc compat header.

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

16 months agoFix compilation without zlib.
reimar [Mon, 20 May 2019 16:45:16 +0000 (16:45 +0000)]
Fix compilation without zlib.

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

16 months agoRemove use of "long double".
reimar [Mon, 20 May 2019 16:45:14 +0000 (16:45 +0000)]
Remove use of "long double".

The values are only "double", and "long double"
on x86 forces the use of x87 instructions which
are less efficient.
Also "long double" is not available on other
architectures.

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

17 months agorelease-howto.txt: Remove freshmeat part
al [Fri, 19 Apr 2019 13:03:05 +0000 (13:03 +0000)]
release-howto.txt: Remove freshmeat part

Seems freshmeat/freecode is kind of closed down.

The content is still up, but static.

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

17 months agovo caca: Don't translate key up to key down
al [Fri, 19 Apr 2019 09:22:57 +0000 (09:22 +0000)]
vo caca: Don't translate key up to key down

Regression since SVN r34363 .

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

17 months agoChangelog: Close latest open section as 1.4
al [Thu, 18 Apr 2019 19:20:26 +0000 (19:20 +0000)]
Changelog: Close latest open section as 1.4

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

17 months agoChangelog: Update
al [Tue, 16 Apr 2019 22:37:32 +0000 (22:37 +0000)]
Changelog: Update

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

17 months agoconfigure: Fix reading the branch control file for FFmpeg
al [Mon, 15 Apr 2019 20:04:09 +0000 (20:04 +0000)]
configure: Fix reading the branch control file for FFmpeg

The file tested against and the read file didn't match since
the feature was initially committed in SVN r36946 .

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

17 months agovo_aa: Fix subtitle display
al [Mon, 15 Apr 2019 16:09:42 +0000 (16:09 +0000)]
vo_aa: Fix subtitle display

Override subtitle font (stored in sub_font) too.

This fixes a regression probably introduced at
the time the separate subtitle font was added
in 2007 (SVN r23356).

All in all, the subtitle and OSD support of vo aa
was a hack from the time it was added. If we choose
to evolve the subtitle code in MPlayer, this hack
will have to be replaced sooner or later.

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

18 months agoUpdate man page.
ib [Sat, 9 Mar 2019 18:18:32 +0000 (18:18 +0000)]
Update man page.

This closes Trac #2352.

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

19 months agoChange the skin browser icon.
ib [Fri, 15 Feb 2019 18:39:23 +0000 (18:39 +0000)]
Change the skin browser icon.

The old one was too similar to a well-known logo.

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

19 months agoAdd missing language code for Norsk.
ib [Fri, 15 Feb 2019 18:33:20 +0000 (18:33 +0000)]
Add missing language code for Norsk.

This is a possible language code provided by the demuxer.

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

20 months agocodecs.conf: merge duplicate m100 decoders, got isom from .qtx strings
compn [Sun, 13 Jan 2019 02:11:42 +0000 (02:11 +0000)]
codecs.conf: merge duplicate m100 decoders, got isom from .qtx strings

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

20 months agocodecs.conf add media100 binary codec tested working on win7
compn [Sat, 12 Jan 2019 19:24:57 +0000 (19:24 +0000)]
codecs.conf add media100 binary codec tested working on win7

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

20 months agoUpdate year.
ib [Tue, 1 Jan 2019 11:26:09 +0000 (11:26 +0000)]
Update year.

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

21 months agostream_bd: support new VUK storage locations of libaacs.
reimar [Sat, 15 Dec 2018 15:38:25 +0000 (15:38 +0000)]
stream_bd: support new VUK storage locations of libaacs.

This allows stream_bd to decrypt files previously
played with stream_br and current libaacs for example.

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

21 months agoconfigure: detect struct pollfd.
reimar [Sat, 15 Dec 2018 15:38:24 +0000 (15:38 +0000)]
configure: detect struct pollfd.

Fixes trac issue #2350.

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

23 months agoFix build after ffmpeg commit series starting with
iive [Sat, 13 Oct 2018 13:48:44 +0000 (13:48 +0000)]
Fix build after ffmpeg commit series starting with
6734eef6b8b464139fdc140ec9bc9e8d74173869
"Add coded bitstream read/write API".

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

2 years agocodecs.conf: add ff imm4 decoder
compn [Fri, 31 Aug 2018 23:17:07 +0000 (23:17 +0000)]
codecs.conf: add ff imm4 decoder

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

2 years agoconfigure: OS/2: remove 'T' flag from ar flags
al [Thu, 16 Aug 2018 23:56:06 +0000 (23:56 +0000)]
configure: OS/2: remove 'T' flag from ar flags

Though ar on OS/2 supports creating thin archives, the linker does
not support linking them.

Patch by KO Myung-Hun >komh78 gmail com<

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

2 years agoconfigure: Search for parsers in the right file again
al [Wed, 8 Aug 2018 22:27:16 +0000 (22:27 +0000)]
configure: Search for parsers in the right file again

Fix build with internal FFmpeg.

After FFmpeg commit 3735d55af32 the list of possible parsers
is stored in libavcodec/parsers.c (instead of embedded in
parser.c as it was before).

Patch on mplayer-users from Dieter >d_werner gmx net<
Patch on mplayer-dev-eng from KO Myung-Hun >komh78 gmail com<

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

2 years agoAllow the GUI to overwrite option allow_playlist_parsing.
ib [Sun, 10 Jun 2018 16:20:59 +0000 (16:20 +0000)]
Allow the GUI to overwrite option allow_playlist_parsing.

Add GUI option support_playlists to be able to allow playlist parsing
even if disabled by MPlayer.

(Since GUI's playlist parsing only takes effect if the user explicitly
loads a playlist file through the file selector's playlist filter, it
can be assumed that they are knowing what they are doing. There will be
no playlist parsing the user can't be aware of. Moreover, instead of
having to enable dangerous playlist parsing in MPlayer's configuration
file - and thus more or less unrestrictedly - parsing can be restricted
to GUI usage this way.)

Add an entry to the preference dialog where the new option can be
configured.

Additionally, update man pages.

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

2 years agoCosmetic: Adjust indent.
ib [Sun, 10 Jun 2018 16:00:09 +0000 (16:00 +0000)]
Cosmetic: Adjust indent.

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

2 years agoDon't unconditionally add a file selector playlist filter.
ib [Sun, 10 Jun 2018 15:59:24 +0000 (15:59 +0000)]
Don't unconditionally add a file selector playlist filter.

If playlist parsing is disabled by MPlayer, playlist playback will be
impossible. So check for it and omit the playlist filter in case the
parsing is disabled. It would otherwise be confusing for the user to be
able to select a playlist that won't play then.

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

2 years agoDefine variable allow_playlist_parsing globally.
ib [Sun, 10 Jun 2018 15:53:58 +0000 (15:53 +0000)]
Define variable allow_playlist_parsing globally.

This will allow the GUI to check for it and to decide whether
a file selector filter for playlists should be provided.

(It won't make sense to provide such filter if playlist parsing
is disabled by MPlayer.)

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

2 years agoUse thin .a files if possible.
reimar [Sun, 6 May 2018 20:08:10 +0000 (20:08 +0000)]
Use thin .a files if possible.

Instead of copying all .o files, the .a file
just has the symbol index and references to the
.o files in thin mode.
As we never install the .a files anywhere, that
makes more sense for us, reducing disk usage
and I/O requirements when building.

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

2 years agoMinor spelling fix.
reimar [Sun, 6 May 2018 17:12:31 +0000 (17:12 +0000)]
Minor spelling fix.

Fix from Debian, by Mateusz Lukasik <mati75 at linuxmint pl>

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

2 years agoconfigure: Disable FFmpeg VapourSynth demuxer
al [Sat, 5 May 2018 23:15:14 +0000 (23:15 +0000)]
configure: Disable FFmpeg VapourSynth demuxer

Enabling the demuxer usually breaks the build as we have no
check for VapourSynth.

Patch by Erik Auerswald >auerswal unix-ag.uni-kl de<

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

2 years agoUse longjmp to test OS SSE support.
reimar [Sat, 5 May 2018 19:00:22 +0000 (19:00 +0000)]
Use longjmp to test OS SSE support.

Note that on modern Linux version we could
really just assume it to be present.

Fixes trac issue #2343.

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

2 years agoReset stream IDs on DVD title change.
ib [Tue, 1 May 2018 12:44:49 +0000 (12:44 +0000)]
Reset stream IDs on DVD title change.

An audio, video or subtitle track selected by the user
must be reset when the title of a DVD changes.

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

2 years agoCosmetic: Adjust indent.
ib [Thu, 26 Apr 2018 04:01:01 +0000 (04:01 +0000)]
Cosmetic: Adjust indent.

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

2 years agoRevise DVD audio track selection.
ib [Thu, 26 Apr 2018 03:59:00 +0000 (03:59 +0000)]
Revise DVD audio track selection.

Check whether there are at least two DVD audio tracks before offering
the user an audio track selection. It makes no sense to have that
selection menu for just one audio track.

This is consistent with the audio track selection menu for all other
stream types now.

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

2 years agoReset track on CD, VCD or DVD playback change.
ib [Thu, 26 Apr 2018 02:38:52 +0000 (02:38 +0000)]
Reset track on CD, VCD or DVD playback change.

The track may already be set by the (current) playback
of an other stream type, so reset it when starting a CD,
VCD or DVD playback.

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

2 years agoconfigure: add some defines for less noisy FFmpeg compilation.
reimar [Tue, 17 Apr 2018 21:39:31 +0000 (21:39 +0000)]
configure: add some defines for less noisy FFmpeg compilation.

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

2 years agoconfigure: fix --enable-ffmpeg_so
reimar [Tue, 17 Apr 2018 21:39:30 +0000 (21:39 +0000)]
configure: fix --enable-ffmpeg_so

It needs to set "$ffmpeg" to yes even though
we run no auto-detection.
Fixes issue #2339.

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

2 years agoUpdate Changelog.
ib [Sun, 15 Apr 2018 10:45:22 +0000 (10:45 +0000)]
Update Changelog.

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

2 years agoUpdate skin documentation on image formats.
ib [Sun, 15 Apr 2018 10:36:51 +0000 (10:36 +0000)]
Update skin documentation on image formats.

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

2 years agoCosmetic: Adjust indent.
ib [Sun, 15 Apr 2018 10:12:15 +0000 (10:12 +0000)]
Cosmetic: Adjust indent.

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

2 years agoSupport AV_PIX_FMT_PAL8.
ib [Sun, 15 Apr 2018 10:10:28 +0000 (10:10 +0000)]
Support AV_PIX_FMT_PAL8.

This typically is the output format of
PNG optimizers like optipng or zopflipng.

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

2 years agoPass pixel format information.
ib [Sun, 15 Apr 2018 10:01:56 +0000 (10:01 +0000)]
Pass pixel format information.

Rather than the bpp, the pixel format determines
the later conversion to ARGB, so receive the format
from pngRead() to utilize it in convert_ARGB().

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

2 years agoRemove checks for unsupported pixel formats.
ib [Sun, 15 Apr 2018 09:48:00 +0000 (09:48 +0000)]
Remove checks for unsupported pixel formats.

It makes no sense to check for pixel formats
and copy images which will be rejected later
in bpRead() anyway.

Additionally, change the debug message.

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