1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00
Commit Graph

43785 Commits

Author SHA1 Message Date
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
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
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
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
5ca1ca1cb6 demux: mp4: map DTS-HD profile 2017-12-20 19:52:47 +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
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
Thomas Guillem
02298c84c4 packetizer: dts: set DTS_HD profile
Only basic set of profile: DTS or DTS_HD, we don't really care about
differentiating HD form HD-MA or others for now.
2017-12-20 19:14:08 +01:00
Steve Lhomme
1a34bf052d direct3d11: remove EraseYUVBorders()
We don't need it anymore now that we don't do interpolation with these extra pixels

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-20 17:24:35 +01:00
Steve Lhomme
bf2eb2ef89 direct3d11: switch the pixel shader to point interpolation when reaching visible sides
The texture is bigger than the visible sides, so if we use linear interpolation
on the last pixel it will use values with unknown values on the part where it
would do clamping otherwise. So we force it to use point interpolation (not
using pixels around) for the last line/column to display.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-20 17:24:35 +01:00
Steve Lhomme
ca2193a6ab direct3d11: use a simplified shader function to sample pixels from the texture
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-20 17:24:35 +01:00
Steve Lhomme
f26d5d8734 direct3d11: provide 2 sampler states
One with linear interpolation, one with point (none) interpolation.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-20 17:24:35 +01:00
Francois Cartegnie
34e4a418da codec: ttml: fallback on non namespaced id 2017-12-20 15:18:48 +01:00
Francois Cartegnie
99da942893 codec: ttml: fix absolute position inside root region
and default to bottom (not really matching spec)
2017-12-20 14:57:49 +01:00
Martin Storsjö
69bf49a103 glwin32: Don't return an error code from a void function
This fixes a compiler error with clang, present since ed9fe3b7:

glwin32.c:249:9: error: void function 'Manage' should not return a value [-Wreturn-type]
        return VLC_EGENERIC;
        ^      ~~~~~~~~~~~~
2017-12-20 15:52:01 +02:00
Francois Cartegnie
f3b52fead1 codec: substx3g: fix alignment 2017-12-20 13:36:23 +01:00
Francois Cartegnie
fbcc7eb12b demux: avi: reject invalid dwRate/dwScale 2017-12-20 13:36:23 +01:00
Francois Cartegnie
8c59fc7af4 demux: avi: do 2 step rescaling 2017-12-20 13:36:23 +01:00
Francois Cartegnie
6e3bd54f48 access: decklink: fix build 2017-12-19 23:25:23 +01:00
Francois Cartegnie
9454888a9c codec: webvtt: add support for standard classes 2017-12-19 21:34:13 +01:00
Francois Cartegnie
7b51e73980 demux: mp4: add reference comment 2017-12-19 21:34:13 +01:00
Rémi Denis-Courmont
72bfe44f98 Include <stdatomic.h> or <atomic> directly where applicable 2017-12-19 19:34:56 +02:00
Rémi Denis-Courmont
c8c04d4372 access: remove duplicated info.i_update initialization (refs #18504) 2017-12-19 19:34:56 +02:00
Francois Cartegnie
4d903a5c78 demux: ts: no discontinuity flag on AF discontinuity
Things are more complex to implement
refs:
streams/ts/AF_time_discontinuity_early_on_pcr.ts
2017-12-19 12:33:35 +01:00