1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00
Commit Graph

73773 Commits

Author SHA1 Message Date
Hugo Beauzée-Luyssen
34d52c7081 Rework breakpad detection to enable it on windows as well 2017-12-23 17:02:45 +01:00
Hugo Beauzée-Luyssen
d1f958ee63 contrib: Allow breakpad to be built on windows 2017-12-23 17:02:45 +01:00
Hugo Beauzée-Luyssen
5439919624 contribs: Bump breakpad version 2017-12-23 17:02:45 +01:00
Adrien Maglo
6ce9f94f02 avcodec: do not reorder Ambisonics channels encoded in AAC
Keep the codec order to achieve a correct Ambisonics rendering.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-22 20:20:17 +01:00
Adrien Maglo
b08ec3f97d faad: do not reorder Ambisonics channels
Keep the original decoded order to achieve a correct Ambisonics rendering.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-22 20:20:17 +01:00
Natanael Copa
01fd9fe4c7 configure: test for getaddrinfo_a and libanl
Test for the existence of the GNU extension getaddrinf_a and libanl
instead of assuming that every Linux has it. Fall back to posix variant
if they are missing.

This fixes build with musl libc which does not implement this GNU
extension.

Fixes #19320

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-22 20:07:45 +01:00
Thomas Guillem
250e44ff9d contrib: x264: disable asm on Android x86*
Because of TEXTREL...
2017-12-22 15:39:18 +01:00
Thomas Guillem
c2ddfa5e41 contrib: vpx: fix x86 android build with encoders
__ANDROID__ doesn't seem to be defined when built from the android yasm
2017-12-22 15:15:40 +01:00
Natanael Copa
9e0b898f17 chroma: fix chroma copy tests on big endian
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-12-22 11:21:39 +01:00
Martin Storsjö
41b5dca1f8 contribs: glew: Simplify/improve the win32 patch, fix building with lld
The previous version of win32.patch left things in a bit more broken state
than necessary.

The previous version of the patch removed LD=gcc and removed a number of
flags, making the build trying to build a DLL (but without the option
-shared), actually producing an EXE. (The linked DLLs are later
actually removed by the contribs build system.) Instead of removing LD=gcc,
change it into LD=$(CC) which is more what glew originally intended, and
keep the flags for linking shared libraries (but remove the -soname option
which isn't supported by neither GNU ld nor lld).

This fixes building in setups where $(LD) points to lld.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-12-22 11:15:36 +01:00
Martin Storsjö
a943285ad5 contribs: qt: Clean up libQt5Bootstrap.a in the build tree as well
When building the Qt tools for the target architecture in cross
compilation, the bootstrap object library is rebuilt. (In cross
builds of Qt, the tools are only built for the build host.
The VLC contribs build them manually for the targeted environment
afterwards.) The tools bootstrap library wasn't removed inbetween
though.

This meant that the object files for the second round (for the
cross target environment) were added to the bootstrap library for
the host environment. Most object files were just replaced, but some
few object files weren't built at all in cross builds for windows.
This meant that after cross-building the bootstrap library for windows,
it still contained a few object files for the native host build
environment as well.

lld-link errors out when it encounters object files in a static library
that it can't parse (in this case, ELF files when doing a windows cross
build).

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-12-22 11:13:56 +01:00
Martin Storsjö
8dd6e48c6e contribs: harfbuzz: Fix compilation with clang on win64
Clang errors out on casting from a pointer to a smaller integer
type.

This is an adapted backport of a newer upstream harfbuzz
commit 03b7a221f701a9b003890878e730ad175c3fdd86.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-12-22 11:11:41 +01:00
Martin Storsjö
05d812e41b contribs: lua: Use an import library when linking, fix building with lld
lld doesn't support providing the DLL instead of an import library
when linking.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-12-22 11:09:04 +01:00
Hugo Beauzée-Luyssen
ab07285ecd dcp: Fix invalid delete
CID #1463250
2017-12-22 10:51:37 +01:00
Hugo Beauzée-Luyssen
3d4c060b1e dcp: Fix potentially invalid release
CID #1463254
2017-12-22 10:51:37 +01:00
Hugo Beauzée-Luyssen
a15a0a6420 dcp: Fix assignment instead of comparison
CID #1463255 #1463251
2017-12-22 10:51:37 +01:00
Hugo Beauzée-Luyssen
a30e9110b6 dcpparser: Remove unused (and uninitialized) member
CID #1463259
2017-12-22 10:51:37 +01:00
Hugo Beauzée-Luyssen
f9e30b38f0 dcp: Remove unrequired checks
CID #1463257 #1463249
2017-12-22 10:51:33 +01:00
Hugo Beauzée-Luyssen
34b8648695 dcp: Fix leak on error
CID #1463258
2017-12-22 10:26:25 +01:00
Hugo Beauzée-Luyssen
d4652c072a dcp: Add missing initialization
CID #1463259
2017-12-22 10:25:04 +01:00
Francois Cartegnie
ca3103da66 codec: ttml: override region position
occues in <set> animations and
broken CaptionMaker smpte-tt

refs #19231
2017-12-21 20:59:39 +01:00
Francois Cartegnie
2e90c837ce codec: ttml: refactor and fix inline extent/origin reading 2017-12-21 20:59:39 +01:00
Francois Cartegnie
42584bd48b text_renderer: workaround max y size limit
because computed regions size usually do not
 match the real line size.
(the right fix being to know font metrics
 before our renderers)

refs #19230
2017-12-21 20:59:33 +01:00
Thomas Guillem
41ef73b463 transcode: fix encoder chroma initialization 2017-12-21 15:23:12 +01:00
Jean-Baptiste Kempf
04bdfd19cb Qt, sprefs: remove one extra string (reuse)
Ref #19305
2017-12-21 14:13:43 +01:00
Pierre Lamot
326c9c13d0 Qt: spref, add option to select the fullscreen screen
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:41 +01:00
Pierre Lamot
679ec991ed Qt: spref, add fast seek option
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:37 +01:00
Pierre Lamot
c501250101 Qt: spref, remove DirectX DisplayDevice preference
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:35 +01:00
Pierre Lamot
430994e0cf Qt: spref, move DirectX specific options to the DirectX GroupBox
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:32 +01:00
Pierre Lamot
1463adae91 Qt: spref, align Privacy / Network options
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:31 +01:00
Pierre Lamot
82752b50a4 Qt: spref, move "Continue playback?" to playlist
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:29 +01:00
Pierre Lamot
bf0e594ed0 Qt: spref, fix Interface > Network > Filter alignment
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:13:23 +01:00
Pierre Lamot
df0634dca2 Qt: spref, remove Dolby Surround and headphone preference
Ref #19305

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-21 14:11:42 +01:00
Hugo Beauzée-Luyssen
87622d2f18 contrib: Disable asdcp on winstore 2017-12-21 13:52:33 +01:00
Thomas Guillem
1b1de3b7f7 DCP: fix heap-use-after-free on xml_ReaderNextNode error
==9090==ERROR: AddressSanitizer: heap-use-after-free on address 0x602000173170 at pc 0x7f8a86e19063 bp 0x7f8a7bbf9230 sp 0x7f8a7bbf89e0
READ of size 2 at 0x602000173170 thread T10
[000061200002c080] dbus interface debug: Getting All properties
[000061200002c080] dbus interface debug: Getting All properties
    #0 0x7f8a86e19062  (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x3c062)
    #1 0x7f8a84dda3b6 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x1203b6)
    #2 0x7f8a4d1bfef1 in XmlFile::ReadNextNode(demux_t*, xml_reader_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ../../modules/access/dcp/dcpparser.cpp:750
    #3 0x7f8a4d1c0d82 in PKL::Parse() ../../modules/access/dcp/dcpparser.cpp:864
    #4 0x7f8a4d1bbe32 in AssetMap::Parse() ../../modules/access/dcp/dcpparser.cpp:291
    #5 0x7f8a4d1b2f7c in parseXML(demux_t*) ../../modules/access/dcp/dcp.cpp:1011
    #6 0x7f8a4d1b2b12 in dcpInit(demux_t*) ../../modules/access/dcp/dcp.cpp:942
    #7 0x7f8a4d1ad3c2 in Open ../../modules/access/dcp/dcp.cpp:326
    #8 0x7f8a8653b97d in generic_start ../../src/modules/modules.c:356
    #9 0x7f8a8653acd4 in module_load ../../src/modules/modules.c:183
    #10 0x7f8a8653b328 in vlc_module_load ../../src/modules/modules.c:279
    #11 0x7f8a8653bace in module_need ../../src/modules/modules.c:371
    #12 0x7f8a8658c8c5 in demux_NewAdvanced ../../src/input/demux.c:270
    #13 0x7f8a865c84c7 in InputDemuxNew ../../src/input/input.c:2403
    #14 0x7f8a865c8e89 in InputSourceNew ../../src/input/input.c:2555
    #15 0x7f8a865c15bf in Init ../../src/input/input.c:1303
    #16 0x7f8a865bc641 in Run ../../src/input/input.c:498
    #17 0x7f8a857ee493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
    #18 0x7f8a8532cafe in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe8afe)

0x602000173170 is located 0 bytes inside of 12-byte region [0x602000173170,0x60200017317c)
freed by thread T10 here:
    #0 0x7f8a86e9ea10 in free (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1a10)
    #1 0x7f8a78a29181 in ReaderNextNode ../../modules/misc/xml/libxml.c:217
    #2 0x7f8a4d1ba838 in xml_ReaderNextNode ../../include/vlc_xml.h:87
    #3 0x7f8a4d1bfec2 in XmlFile::ReadNextNode(demux_t*, xml_reader_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ../../modules/access/dcp/dcpparser.cpp:744
    #4 0x7f8a4d1c0d82 in PKL::Parse() ../../modules/access/dcp/dcpparser.cpp:864
    #5 0x7f8a4d1bbe32 in AssetMap::Parse() ../../modules/access/dcp/dcpparser.cpp:291
    #6 0x7f8a4d1b2f7c in parseXML(demux_t*) ../../modules/access/dcp/dcp.cpp:1011
    #7 0x7f8a4d1b2b12 in dcpInit(demux_t*) ../../modules/access/dcp/dcp.cpp:942
    #8 0x7f8a4d1ad3c2 in Open ../../modules/access/dcp/dcp.cpp:326
    #9 0x7f8a8653b97d in generic_start ../../src/modules/modules.c:356
    #10 0x7f8a8653acd4 in module_load ../../src/modules/modules.c:183
    #11 0x7f8a8653b328 in vlc_module_load ../../src/modules/modules.c:279
    #12 0x7f8a8653bace in module_need ../../src/modules/modules.c:371
    #13 0x7f8a8658c8c5 in demux_NewAdvanced ../../src/input/demux.c:270
    #14 0x7f8a865c84c7 in InputDemuxNew ../../src/input/input.c:2403
    #15 0x7f8a865c8e89 in InputSourceNew ../../src/input/input.c:2555
    #16 0x7f8a865c15bf in Init ../../src/input/input.c:1303
    #17 0x7f8a865bc641 in Run ../../src/input/input.c:498
    #18 0x7f8a857ee493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
2017-12-21 10:59:13 +01:00
Francois Cartegnie
9f64295f20 demux: ts: don't wait for network time (fix #19234) 2017-12-21 10:55:57 +01:00
Francois Cartegnie
16592d5615 video_output: skip epg time if not avail 2017-12-21 10:55:57 +01:00
Jean-Baptiste Kempf
19fce3b274 extras/tools: add all files in the dist package 2017-12-21 10:05:37 +01:00
Francois Cartegnie
5ca1ca1cb6 demux: mp4: map DTS-HD profile 2017-12-20 19:52:47 +01:00
Francois Cartegnie
b7b69fcf8c ImageWrite: create filters when RGB masks differ
refs #13349
2017-12-20 19:34:36 +01:00
Francois Cartegnie
68a0e6fff4 codec: png: encoder wants RGB
refs #13349
2017-12-20 19:34:36 +01:00
Adrien Maglo
387c991aac spatialaudio: replace the FHK HRTF by the 3D Sound Labs HRTF
This HRTF is licensed under the GNU Lesser General Public License v2.1
or later.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-12-20 19:25:27 +01:00
Thomas Guillem
926e12200e aout: audiotrack: setup DTS_HD output only when needed 2017-12-20 19:14:08 +01:00
Thomas Guillem
ae9c49598c aout: mmdevice: setup DTS_HD output only when needed 2017-12-20 19:14:08 +01:00
Thomas Guillem
542c20c7c3 aout: add HACK to differentiate DTS from DTS-HD
This HACK need to be replaced in 4.0 by adding a profile to audio_format_t or
by passing it to aout modules.
2017-12-20 19:14:08 +01:00
Thomas Guillem
e0f8be415b decoder: check i_profile similarity for audio
Maybe es_format_IsSimilar should be used.
2017-12-20 19:14:08 +01:00
Thomas Guillem
93fca804f8 es_format: check i_profile similarity for audio 2017-12-20 19:14:08 +01:00
Thomas Guillem
52b49c2603 codec: spdif: pass i_profile 2017-12-20 19:14:08 +01:00
Thomas Guillem
f35b3d9791 demux: psi: fill DTS profile 2017-12-20 19:14:08 +01:00
Thomas Guillem
7612232592 demux: mp4: fill DTS profile 2017-12-20 19:14:08 +01:00