1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00
Commit Graph

75783 Commits

Author SHA1 Message Date
Francois Cartegnie
ec9602e466 codec: subsdec: fix inbuffer size
strlen can't work on wchars
2018-04-23 20:02:10 +02:00
Francois Cartegnie
3af169ca8b demux: subtitle: don't set encoding
readline converts data
2018-04-23 20:02:10 +02:00
Tristan Matthews
8d50209345 prefetch: drop unused defines 2018-04-23 13:05:57 -04:00
Thomas Guillem
5b3e1a9d09 videotoolbox: rework hw-accel strings
Rename it to "hardware acceleration" that is way more common and remove the
LONGTEXT that was useless.
2018-04-23 17:25:13 +02:00
Thomas Guillem
6c785d5a4c mediacodec: rework hw-accel strings
Rename it to "hardware acceleration" that is way more common and remove the
LONGTEXT that was useless.
2018-04-23 17:25:13 +02:00
Steve Lhomme
36ebbca2ca contrib: srt: fix non-GNU compiler detection
CMAKE_CXX_COMPILER_ID is not necessarily defined
2018-04-23 13:40:22 +02:00
Steve Lhomme
ccbef67f77 core: remove empty curly braces initialization
They are not allowed per §6.7.9 of the 2011 ISO C Standard:

initializer:
         assignment-expression
         { initializer-list }
         { initializer-list , }
initializer-list:
         designation(opt) initializer
         initializer-list , designation(opt) initializer
2018-04-23 13:40:22 +02:00
Steve Lhomme
d6a4f1d32d modules: remove empty curly braces initialization
They are not allowed per §6.7.9 of the 2011 ISO C Standard:

initializer:
         assignment-expression
         { initializer-list }
         { initializer-list , }
initializer-list:
         designation(opt) initializer
         initializer-list , designation(opt) initializer
2018-04-23 13:40:21 +02:00
Hugo Beauzée-Luyssen
612553ddf0 contribs: Fix ebml clang build 2018-04-23 12:03:04 +02:00
Steve Lhomme
746c35e029 contrib: ebml/matroska depend on toolchain.cmake now that is uses CMake 2018-04-23 09:15:37 +02:00
Thomas Guillem
c805ab1b00 mediacodec: add an option to enable hwdec
Use --no-mediacodec to disable hardware-accelerated video decoding on Android.
2018-04-23 08:55:21 +02:00
Thomas Guillem
808599f8ee mediacodec: enable mediacodec_ndk
mediacodec_ndk can now be safely enabled. This is not the case for
mediacodec_jni that run on old devices and can cause some trouble.

Nevertheless, the vlc android app will use its own settings.
2018-04-23 08:55:21 +02:00
Thomas Guillem
edc7ccd9a7 videotoolbox: add an option to enable hwdec
Use --no-videotoolbox to disable hardware-accelerated video decoding on
macOS/iOS.
2018-04-23 08:55:21 +02:00
Francois Cartegnie
5ebb1c252a decoder: avcodec: rework framedrop
Tries to recover in hevc case.
Avoids unwanted 5s drops in case of pause.
2018-04-22 21:30:30 +02:00
Felix Paul Kühne
c628ce8f79 keychain: add support for iOS and tvOS
To achieve this, Find and Remove were re-written without a functional change for macOS
2018-04-22 20:19:50 +02:00
Romain Vimont
b529d4e20e decoder: display subtitles on seek while paused
While paused, make the SPU decoder process one block on seek, in order
to display the matching subtitle immediately.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-22 18:57:46 +02:00
Justin Kim
0fed86b7fc contrib: srt: update to 1.2.3
SRT has changed the license to MPL-2.0 with release 1.3.0 version.

Signed-off-by: Justin Kim <justin.kim@collabora.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-22 18:57:06 +02:00
Francois Cartegnie
44cc0d5633 decodec: avcodec: rework decoding loop 2018-04-22 14:13:24 +02:00
David Fuhrmann
5f2a3b37a4 macOS build.sh: Drop symbols for older macOS / iOS versions
vlc.git will now target macOS 10.10 or higher, therefore some
symbols can be enabled now, as they are available.

The full list of dropped symbols with their minimum version is:
- export ac_cv_func_ffsll=no # 10.9 / ios7
- export ac_cv_func_flsll=no # 10.9 / ios7
- export ac_cv_func_fdopendir=no # 10.10 / ios8
- export ac_cv_func_openat=no # 10.10 / ios8
- export ac_cv_func_fstatat=no # 10.10 / ios8
- export ac_cv_func_readlinkat=no # 10.10 / ios8
2018-04-21 19:44:40 +02:00
Thomas Guillem
e57241f6fa gl: android: precise rgba sampling with samplerExternalOES
This should not be needed but this fixes wrong colors on Sony Xperia XZ2
devices.

PS: The OES_EGL_image_external documentation says:
"Sampling an external texture will return an RGBA vector in the same colorspace
as the source image."
2018-04-21 14:55:40 +02:00
David Fuhrmann
d2f79f662d macosx: Select network text field once network open panel is shown
Select all to directly modify or copy / paste a new URL into
the field.

closes #19863
2018-04-21 12:34:37 +02:00
David Fuhrmann
de8f9ff8f5 macosx: Abort early in case getIntf() returns nil 2018-04-21 12:34:37 +02:00
David Fuhrmann
1ea5081191 macosx: Improve logging for A to B (refs #20293) 2018-04-21 12:34:37 +02:00
Steve Lhomme
b99c05e0d2 contrib: update libmatroska to 1.4.9 2018-04-21 11:34:14 +02:00
Steve Lhomme
400c88cbf3 contrib: update libebml to 1.3.6 2018-04-21 11:34:13 +02:00
David Fuhrmann
6875adbfc6 macosx: Remove VLCHUDxxx classes again from MediaInfo.xib
This was added by reverting the file to an earlier version.
This commit removes those custom classes again.
Also, set minimum version to deployment version (10.10).
2018-04-20 17:33:38 +02:00
David Fuhrmann
5265a9825c macosx: Fix section list on advanced prefs panel
Make sure the items are not editable. Also select smaller font.
2018-04-20 17:33:38 +02:00
Thomas Guillem
2af423e594 videotoolbox: always abort in case of BadDataErr
It's safer to fallback to SW dec the earliest possible since the stream is
likely to contain more problematic data.
2018-04-20 17:29:17 +02:00
Steve Lhomme
70bd8ada6e directx_va: fix profile detection
0 is an actual VP9 profile
2018-04-20 12:17:38 +02:00
Zhao Zhili
b663ae7a0c opengl: remove newline at the tail of log message
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-04-20 11:44:03 +02:00
Hugo Beauzée-Luyssen
e65aec1c3b demux-run: Fix leak when failing to create a decoder 2018-04-20 10:28:33 +02:00
Hugo Beauzée-Luyssen
e196e7cad0 test: fuzzing: Add ogg module 2018-04-20 10:28:33 +02:00
Martin Storsjö
5157dc8988 contrib: aom: Use asm/intrinsics on windows on arm/aarch64 2018-04-20 11:02:44 +03:00
Martin Storsjö
5aa68fe49f contrib: aom: Update to a recent git snapshot
This version makes sure pthreads-w32 isn't accidentally detected
and enabled; previously when building contribs for windows, aom
would end up trying to use pthreads-w32 (but fail linking the plugin)
if it was built after pthreads-w32.

This version also supports building with assembly or intrinsics
for windows on arm/arm64.

In principle, the same issue also exists in libvpx. However, when
libvpx is built with the contribs build system, the contribs include
directory isn't passed to libvpx, so it won't accidentally find
pthreads-w32. (This issue is fixed in the latest git version of libvpx.)
2018-04-20 11:02:44 +03:00
Martin Storsjö
b57dc75f24 contrib: aom: Include the git hash in the download filename
This makes sure it is updated properly if changing the hash used.
2018-04-20 11:02:44 +03:00
Martin Storsjö
622360c2c4 aom: Remove unsupported pixel formats
Support for these was apparently never in the codebase, and the enum
values were recently removed from the public headers [1].

This fixes build with latest libaom build.

[1] https://aomedia.googlesource.com/aom/+/3f29cc20e3a4c348cb41a797c68de856ddb84e12
2018-04-20 11:02:44 +03:00
Martin Storsjö
e14d19fe86 contrib: vpx: Backport patches for windows on arm with mingw
These patches are from the latest git master of libvpx (past the 1.7.0
release).

This also tries to configure with arm64 optimizations on other platforms
as well, which hadn't been hooked up before.
2018-04-20 11:02:44 +03:00
Thomas Guillem
5a20d22921 sid: rename demux_sys_t to demux_sid
ODR related.
2018-04-20 08:44:09 +02:00
Steve Lhomme
a8ac11fe30 dxva2: log the adapter Ids as hexademical
That's the common way to refer to them.
2018-04-19 16:00:25 +02:00
Steve Lhomme
e6e2dc4b4d d3d11va: log the adapter Ids as hexademical
That's the common way to refer to them.
2018-04-19 16:00:24 +02:00
Hugo Beauzée-Luyssen
8e7389d1f5 qt: input_slider: Use the legacy scroll direction
Downward mouse scroll seeks backward, updward scrolls forward
2018-04-19 13:16:47 +02:00
Romain Vimont
35a5a0ab24 hotkeys: fix SPU scaling limits
Otherwise it's impossible to reset the value to 100%
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2018-04-19 13:07:06 +02:00
Hugo Beauzée-Luyssen
b11576810d qt: input_slider: Take user settings into account when jumping
But do so without using actions, as it would display the position using
OSD, while we're already displaying the FSC
2018-04-19 12:27:42 +02:00
Hugo Beauzée-Luyssen
0894824081 Partial revert "qt: Convert seek slider wheel events to actions"
This partially reverts commit 8314cd6ce6.
2018-04-19 12:27:42 +02:00
Hugo Beauzée-Luyssen
54bad88fe9 Revert "qt: input_slider: Convert wheel events to KEY_MOUSEWHEEL*"
This reverts commit 11bd3483a0.
2018-04-19 12:27:42 +02:00
Thomas Guillem
a538c464cb nfs: reset eof state on seek 2018-04-19 11:47:16 +02:00
Simon Latapie
c62afbf826 win32: build.sh: add an interactive mode
Adds an option to get a shell with the right environment set to build
VLC.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2018-04-19 09:59:31 +02:00
Steve Lhomme
eea7cee18d d3d9_fmt: remove the driver version check function as it's not used anymore
It may come back later.
2018-04-19 09:53:43 +02:00
Steve Lhomme
1bbc837709 directx_va: disable Intel hybrid HEVC decoding by default
GPUs with Intel Hybrid HEVC are the ones from the BroadWell family and is
causing decoding issues in 10 bits and 8 bits decoding.

If the HW decoder is forced it will be used anyway.

When blacklisted there is msg_Warn so that it's more visible to the user.
2018-04-19 09:53:42 +02:00
Steve Lhomme
31c9df2569 rawvid: fix unlikely NULL dereference
CID #1467998
2018-04-19 07:39:47 +02:00