vlc.git
5 years agoNEWS: List new features that were added to the macOS interface
Marvin Scholz [Fri, 4 Nov 2016 21:35:58 +0000 (22:35 +0100)]
NEWS: List new features that were added to the macOS interface

5 years agourl: do not rely on asserts in test and print error on URL parsing
Rémi Denis-Courmont [Sat, 5 Nov 2016 22:26:23 +0000 (00:26 +0200)]
url: do not rely on asserts in test and print error on URL parsing

5 years agourl: use common test harness for URI resolve and fixup
Rémi Denis-Courmont [Sat, 5 Nov 2016 22:10:09 +0000 (00:10 +0200)]
url: use common test harness for URI resolve and fixup

5 years agourl: only print out failed tests
Rémi Denis-Courmont [Sat, 5 Nov 2016 22:09:48 +0000 (00:09 +0200)]
url: only print out failed tests

5 years agourl: fix IDN to ASCII of the empty string on Windows
Rémi Denis-Courmont [Sat, 5 Nov 2016 21:58:40 +0000 (23:58 +0200)]
url: fix IDN to ASCII of the empty string on Windows

5 years agoRevert "freetype: fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:58 +0000 (19:54 +0300)]
Revert "freetype: fix static linking."

This reverts commit 6c76cb23b0d6c4f85423783a9138be83f7d3667a.

5 years agoRevert "chromaprint: fix linking against static libavcodec."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:58 +0000 (19:54 +0300)]
Revert "chromaprint: fix linking against static libavcodec."

This reverts commit 4fb3848ad84d5e668f9f4825591ed890cd16d6a3.

5 years agoRevert "dca: Fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:57 +0000 (19:54 +0300)]
Revert "dca: Fix static linking."

This reverts commit fb9a94bf6fd22a04925b6e2633551679aeeabccf.

5 years agoRevert "speex_resampler: Fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:56 +0000 (19:54 +0300)]
Revert "speex_resampler: Fix static linking."

This reverts commit d21869948da2527b2da26aa848b2339ce1a073ae.

5 years agoRevert "zvbi: Fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:56 +0000 (19:54 +0300)]
Revert "zvbi: Fix static linking."

This reverts commit faea418c6393c369962c1555dc66c3ef4fad3c6c.

5 years agoRevert "libass: Fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:55 +0000 (19:54 +0300)]
Revert "libass: Fix static linking."

This reverts commit c7090eff1cfe0d4fa676dd484456c70b3efef43d.

5 years agoRevert "a52: Fix static linking."
Konstantin Pavlov [Sat, 5 Nov 2016 16:54:53 +0000 (19:54 +0300)]
Revert "a52: Fix static linking."

This reverts commit a6be49e4d8becc5cc0e690c1577a123fda0c3dad.

5 years agoRevert "tests/tls: Disable checks for ALPN on apple platforms"
David Fuhrmann [Sat, 5 Nov 2016 16:52:44 +0000 (17:52 +0100)]
Revert "tests/tls: Disable checks for ALPN on apple platforms"

This is not sufficient to disable the test currently.

This reverts commit 784ab6ce693675fb554060d1e1f8d194c354e3ff.

5 years agofreetype: fix static linking.
Konstantin Pavlov [Wed, 2 Nov 2016 23:45:04 +0000 (02:45 +0300)]
freetype: fix static linking.

5 years agochromaprint: fix linking against static libavcodec.
Konstantin Pavlov [Wed, 2 Nov 2016 23:16:14 +0000 (02:16 +0300)]
chromaprint: fix linking against static libavcodec.

5 years agocontrib: gnutls: fix linking with static nettle.
Konstantin Pavlov [Wed, 2 Nov 2016 23:12:27 +0000 (02:12 +0300)]
contrib: gnutls: fix linking with static nettle.

5 years agocontrib: libxml2: fix pkg-config for static linking.
Konstantin Pavlov [Wed, 2 Nov 2016 21:41:58 +0000 (00:41 +0300)]
contrib: libxml2: fix pkg-config for static linking.

5 years agocontrib: zvbi: fixed linking with static libpng.
Konstantin Pavlov [Wed, 2 Nov 2016 21:36:29 +0000 (00:36 +0300)]
contrib: zvbi: fixed linking with static libpng.

5 years agospeex_resampler: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:06:40 +0000 (19:06 +0300)]
speex_resampler: Fix static linking.

5 years agosoxr: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:06:21 +0000 (19:06 +0300)]
soxr: Fix static linking.

5 years agosamplerate: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:06:06 +0000 (19:06 +0300)]
samplerate: Fix static linking.

5 years agozvbi: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:05:35 +0000 (19:05 +0300)]
zvbi: Fix static linking.

5 years agolibass: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:05:16 +0000 (19:05 +0300)]
libass: Fix static linking.

5 years agodca: Fix static linking.
Konstantin Pavlov [Sat, 5 Nov 2016 16:04:29 +0000 (19:04 +0300)]
dca: Fix static linking.

5 years agoa52: Fix static linking.
Konstantin Pavlov [Tue, 1 Nov 2016 19:30:17 +0000 (22:30 +0300)]
a52: Fix static linking.

5 years agocontrib: png: fix pkg-config for static linking.
Konstantin Pavlov [Wed, 2 Nov 2016 21:30:44 +0000 (00:30 +0300)]
contrib: png: fix pkg-config for static linking.

5 years agocontrib: fontconfig: fix pkg-config for static linking.
Konstantin Pavlov [Wed, 2 Nov 2016 21:30:30 +0000 (00:30 +0300)]
contrib: fontconfig: fix pkg-config for static linking.

5 years agocontrib: tiger: fix pkg-config for static linking.
Konstantin Pavlov [Tue, 1 Nov 2016 19:36:28 +0000 (22:36 +0300)]
contrib: tiger: fix pkg-config for static linking.

5 years agocontrib: libarchive: fix pkg-config for static linking.
Konstantin Pavlov [Tue, 1 Nov 2016 19:36:16 +0000 (22:36 +0300)]
contrib: libarchive: fix pkg-config for static linking.

5 years agoinput: privatize b_preparsing
Rémi Denis-Courmont [Sat, 5 Nov 2016 09:30:29 +0000 (11:30 +0200)]
input: privatize b_preparsing

5 years agoinput: add intermediate variable to simplify
Rémi Denis-Courmont [Sat, 5 Nov 2016 09:22:30 +0000 (11:22 +0200)]
input: add intermediate variable to simplify

5 years agoes_out: remove tautology
Rémi Denis-Courmont [Sat, 5 Nov 2016 09:24:07 +0000 (11:24 +0200)]
es_out: remove tautology

sout is only instantiated when not preparsing.

More generally, a lot of special cases for preparsing could be
eliminated if preparsing used a dedicated ES output back-end, but that
is way beyond the scope of this patch.

5 years agoogg: fix potential NULL dereference
Rémi Denis-Courmont [Sat, 5 Nov 2016 08:59:32 +0000 (10:59 +0200)]
ogg: fix potential NULL dereference

5 years agoinput: remove indirection from input to input private data
Rémi Denis-Courmont [Sat, 5 Nov 2016 08:11:44 +0000 (10:11 +0200)]
input: remove indirection from input to input private data

Put the input thread (public) within the private data, like we already
do for some other core-allocated objects. This removes one layer of
indirection for almost all internal input values.

input_thread_t.p no longer exists. Use input_priv() instead.

5 years agovimeo.lua: tighten player.vimeo.com probe
Pierre Ynard [Sat, 5 Nov 2016 01:34:58 +0000 (02:34 +0100)]
vimeo.lua: tighten player.vimeo.com probe

5 years agodemux: mp4: check for overflows in PeekBoxHeader
Francois Cartegnie [Fri, 4 Nov 2016 18:51:53 +0000 (19:51 +0100)]
demux: mp4: check for overflows in PeekBoxHeader

refs #17584

5 years agodemux/mkv: abort EnsureDuration on non-finite elements
Filip Roséen [Fri, 4 Nov 2016 15:47:08 +0000 (16:47 +0100)]
demux/mkv: abort EnsureDuration on non-finite elements

matroska_segment_c::EnsureDuration is used to calculate the duration
for a stream which does not include the value as metadata. Given that
the function potentially will have to run through the entire file in
order to get the last timecode, these changes make sure that we abort
if an element does not have a finite size.

If an element, on the way, does not have a finite size we cannot
simply jump over it, but have to parse it's entire contents (which
might be an expensive operation). And most often when an element does
not have a finite size, the media is being streamed.

We however have an exception to infinite clusters that are referenced
by a Cue, in which case we will try to parse it (to allow content
saved from a live stream where the Cues refers to every cluster to
have a duration).

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agodemux/mkv: fix 17567: null-pointer dereference in EnsureDuration
Filip Roséen [Fri, 4 Nov 2016 15:47:07 +0000 (16:47 +0100)]
demux/mkv: fix 17567: null-pointer dereference in EnsureDuration

Since matroska_segment_c::EnsureDuration calculates the duration by
using the timecode of the last block in the last cluster, and
subtracting that with the timecode of the first cluster found, the
previous implementation would crash if there was no clusters in the
file.

These changes fixes that, and should be viewed as a fixup of f275663.

fixes #17567

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agodemux: libmp4: reject truncated boxes (fix #17584)
Francois Cartegnie [Fri, 4 Nov 2016 10:06:47 +0000 (11:06 +0100)]
demux: libmp4: reject truncated boxes (fix #17584)

5 years agodemux/asf: fix 17601: fix undesired integer underflow
Filip Roséen [Fri, 4 Nov 2016 09:02:04 +0000 (10:02 +0100)]
demux/asf: fix 17601: fix undesired integer underflow

This commit shall be viewed as a fix-up of 86835f9.

The previous commit in question did not take into account that the
left-hand side expression can of course result in a negative value,
meaning that the value-promotion necessary for the comparison to take
place would result in a very large value (where we expect a very small
one).

fixes #17601

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agomacosx: Release CGColorRef properly
Marvin Scholz [Thu, 3 Nov 2016 17:49:41 +0000 (18:49 +0100)]
macosx: Release CGColorRef properly

ARC only handles Objective C objects so a CGColorRef needs to be
released explicitly.

5 years agomacosx: Fix VLCFullScreenPanel.xib requiring Xcode 8
Marvin Scholz [Thu, 3 Nov 2016 16:25:31 +0000 (17:25 +0100)]
macosx: Fix VLCFullScreenPanel.xib requiring Xcode 8

5 years agomacosx: Disable custom fscontroller height on <10.10 to fix hang
Marvin Scholz [Thu, 3 Nov 2016 14:38:23 +0000 (15:38 +0100)]
macosx: Disable custom fscontroller height on <10.10 to fix hang

Due to auto layout issues the fullscreen controller window would use
a huge height on some older OS X versions (tested on 10.7), which would
cause rendering some controls to hang.
As a quick fix, this commit disables the possibility to adjust the
height on OS X versions lower than 10.10.

5 years agomacosx: Fix crash on 10.7 due to CGColor method
Marvin Scholz [Thu, 3 Nov 2016 01:05:08 +0000 (02:05 +0100)]
macosx: Fix crash on 10.7 due to CGColor method

This fixes an issue where VLC would crash on 10.7 doe to usage of the
CGColor method on NSColor which was only introduce in 10.8, leading
to a crash on 10.7.

5 years agodemux: adaptive: add chunked transfert support
Francois Cartegnie [Wed, 2 Nov 2016 18:14:31 +0000 (19:14 +0100)]
demux: adaptive: add chunked transfert support

refs #17551

5 years agomms: use vlc_getProxyUrl()
Rémi Denis-Courmont [Wed, 2 Nov 2016 16:13:55 +0000 (18:13 +0200)]
mms: use vlc_getProxyUrl()

5 years agodemux: adaptive: fix uninitialized average (CID #1374346)
Tristan Matthews [Tue, 1 Nov 2016 23:04:48 +0000 (19:04 -0400)]
demux: adaptive: fix uninitialized average (CID #1374346)

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
5 years agopacketizer: hevc: check short term ref pics loop
Francois Cartegnie [Wed, 2 Nov 2016 14:50:18 +0000 (15:50 +0100)]
packetizer: hevc: check short term ref pics loop

5 years agovlc_bits: fix overflow in bs_read_ue
Francois Cartegnie [Wed, 2 Nov 2016 14:44:47 +0000 (15:44 +0100)]
vlc_bits: fix overflow in bs_read_ue

refs #17591

5 years agopacketizer: hevc: check pps heterogenous tiling sizes loop (fix #17591)
Francois Cartegnie [Wed, 2 Nov 2016 14:39:45 +0000 (15:39 +0100)]
packetizer: hevc: check pps heterogenous tiling sizes loop (fix #17591)

5 years agopacketizer: h264: check hdr parameters loop (fix #17590)
Francois Cartegnie [Wed, 2 Nov 2016 14:02:10 +0000 (15:02 +0100)]
packetizer: h264: check hdr parameters loop (fix #17590)

5 years agodemux: mp4: don't preload fastseekable
Francois Cartegnie [Wed, 2 Nov 2016 13:30:51 +0000 (14:30 +0100)]
demux: mp4: don't preload fastseekable

5 years agopacketizer: h264: fully compute pts from dpb delay
Francois Cartegnie [Wed, 2 Nov 2016 12:15:22 +0000 (13:15 +0100)]
packetizer: h264: fully compute pts from dpb delay

avoids outputting pts less frames/blocks

5 years agoRevert "network: Android has vlc_getaddrinfo_i11e"
Thomas Guillem [Wed, 2 Nov 2016 13:08:39 +0000 (14:08 +0100)]
Revert "network: Android has vlc_getaddrinfo_i11e"

This reverts commit 32bd30ca34defa3c7732b98eb26d202e255ae390.

5 years agodemux/mkv: fix 17575: ignore simple blocks preceeding timecode
Filip Roséen [Mon, 31 Oct 2016 14:07:45 +0000 (15:07 +0100)]
demux/mkv: fix 17575: ignore simple blocks preceeding timecode

As detailed in the matroska specification, the Timecode element within
a cluster is not only mandatory, it shall be the first element within
its parent (given that a SimpleBlock, and other entities, cannot be
interpreted correctly without it).

The previous implementation would assert inside libmatroska on
out-of-order blocks, causing us to crash. These changes are made so
that out-of-order elements are ignored instead of being a
point-of-failure.

An input where the added diagnostic is triggered is ill-formed.

 - https://www.matroska.org/technical/order/index.html

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agonetwork: Android has vlc_getaddrinfo_i11e
Thomas Guillem [Wed, 2 Nov 2016 09:41:08 +0000 (10:41 +0100)]
network: Android has vlc_getaddrinfo_i11e

5 years agofix Android build
Thomas Guillem [Wed, 2 Nov 2016 09:40:58 +0000 (10:40 +0100)]
fix Android build

5 years agodemux/mkv: fix 17572: error on cluster without timecode
Filip Roséen [Mon, 31 Oct 2016 11:57:15 +0000 (12:57 +0100)]
demux/mkv: fix 17572: error on cluster without timecode

As can be read in the MKV specification, a cluster must include a
timecode element in order to be valid.

These changes make sure that we error if such element is missing,
effectivelly preventing us from calling KaxCluster::GlobalTimecode
(which will assert if KaxCluster::InitTimecode has not been called).

fixes #17572

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agodemux/mkv: make it possible to check result of ParseCluster
Filip Roséen [Mon, 31 Oct 2016 11:57:14 +0000 (12:57 +0100)]
demux/mkv: make it possible to check result of ParseCluster

Parsing a cluster can fail for a number of different reasons, though
previously it was impossible for the callee to know whether parsing
was successful or not.

These changes changes the signature of
matroska_segment_c::ParseCluster so that it returns a boolean (true on
success, false on failure).

Signed-off-by: Steve Lhomme <robux4@videolabs.io>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
5 years agolua: remove unused variable and no-op assignment
Pierre Ynard [Wed, 2 Nov 2016 06:09:29 +0000 (07:09 +0100)]
lua: remove unused variable and no-op assignment

5 years agolua: stop installing broken playlist scripts
Pierre Ynard [Wed, 2 Nov 2016 01:31:29 +0000 (02:31 +0100)]
lua: stop installing broken playlist scripts

These scripts are unmaintained and obviously outdated and broken. Up for
adoption, some of them seem rather easy to fix!

5 years agoanevia_streams.lua: partially tighten URL probe function
Pierre Ynard [Wed, 2 Nov 2016 01:19:50 +0000 (02:19 +0100)]
anevia_streams.lua: partially tighten URL probe function

Ref. #17488

5 years agolua: tighten URL probe functions of playlist scripts
Pierre Ynard [Wed, 2 Nov 2016 01:17:59 +0000 (02:17 +0100)]
lua: tighten URL probe functions of playlist scripts

These scripts are possibly still otherwise outdated and broken.

Ref. #17488

5 years agolua: update and tighten URL probe functions of playlist scripts
Pierre Ynard [Wed, 2 Nov 2016 01:14:29 +0000 (02:14 +0100)]
lua: update and tighten URL probe functions of playlist scripts

Update domains and URL roots, but these scripts are still otherwise
outdated and broken.

Ref. #17488

5 years agolua: fix and tighten URL probe functions of playlist scripts
Pierre Ynard [Wed, 2 Nov 2016 01:08:54 +0000 (02:08 +0100)]
lua: fix and tighten URL probe functions of playlist scripts

Fix wrong operator precedence. These scripts are still outdated and
broken though.

Ref. #17488

5 years agokoreus.lua: tighten URL probe function
Pierre Ynard [Wed, 2 Nov 2016 00:53:40 +0000 (01:53 +0100)]
koreus.lua: tighten URL probe function

Ref. #17488

5 years agovocaroo.lua: tighten URL probe function
Pierre Ynard [Wed, 2 Nov 2016 00:52:25 +0000 (01:52 +0100)]
vocaroo.lua: tighten URL probe function

Ref. #17488

5 years agodemux: ttml: fix use after free (CID #1374347)
Tristan Matthews [Tue, 1 Nov 2016 22:31:16 +0000 (18:31 -0400)]
demux: ttml: fix use after free (CID #1374347)

5 years agodemux/nsv: invalid NSVf header size leads to infinite loop (fixes #17563)
Filip Roséen [Sun, 30 Oct 2016 22:27:36 +0000 (23:27 +0100)]
demux/nsv: invalid NSVf header size leads to infinite loop (fixes #17563)

According to the specification of nsv, a file header size of 0 (and
0xFFFFFFFF) is invalid; these changes prevents an infinite loop if the
size is specified as the former, while also making sure that we do not
try to parse files containing the latter.

 - http://multimedia.cx/nsv-format.txt

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agodemux/avformat: fix return-value of IORead (fixes #17574)
Filip Roséen [Tue, 1 Nov 2016 12:51:27 +0000 (13:51 +0100)]
demux/avformat: fix return-value of IORead (fixes #17574)

av_read_frame expects 0 to be returned on end-of-file, and negative
values are reserved for fatal stream-errors. The previous
implementation would return -1 upon EOF (vlc_stream_Read returning 0),
causing premature EOF from modules/demux/avformat/demux.c:Demux.

These changes make sure that we honor the contract associated with the
read-callback, and that we only return -1 if there is a fatal error.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agodemux/avi: do not call FromACP with NULL (fixes #17581)
Filip Roséen [Tue, 1 Nov 2016 01:33:03 +0000 (02:33 +0100)]
demux/avi: do not call FromACP with NULL (fixes #17581)

FromACP is used to convert a c-style string from one charset to the
other, as such it does not make sense to call the function with NULL
(especially given that NULL is not a valid input for the function).

These changes fixes the checks to see whether or not the function is
applicable or not by properly checking the argument that would-be
passed (instead of just the object that contains it).

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agodemux/asf: prevent overflow leading to crash (fixes #17580)
Filip Roséen [Tue, 1 Nov 2016 01:15:25 +0000 (02:15 +0100)]
demux/asf: prevent overflow leading to crash (fixes #17580)

Given that the previous implementation assigned the return-value of
vlc_stream_Peek to a size_t, the value would wrap around on error
(since vlc_stream_Peek returns -1), rendering the "< 78" somewhat
useless (when an error occurs).

These changes change the type of i_peek to correspond to that of
vlc_stream_Peek, while also making sure that we error before calling
the function if the object size is larger than SSIZE_MAX (meaning that
we cannot peek).

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agodemux/asf: prevent signed integer overflow (fixes #17579)
Filip Roséen [Tue, 1 Nov 2016 01:04:06 +0000 (02:04 +0100)]
demux/asf: prevent signed integer overflow (fixes #17579)

The previous implementation could overflow the mtime_t when
multiplying p_sys->p_fp->i_preroll by a thousand when converting from
the asf time unit (milliseconds) to VLCs (microseconds).

Given that you can always divide a value without running into issues
in terms of under/overflow, these changes prevent any overflow error
while still preserving the same logic.

In short the implementation takes advantage of the below two
conditions being equivalent:

   1: A > ( ( B * C ) + D )
   2: ( ( A - D ) / C ) > B

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agoconfigure: remove reference to nonexistent $ac_cv_c_altivec_abi
Rémi Denis-Courmont [Tue, 1 Nov 2016 14:49:03 +0000 (16:49 +0200)]
configure: remove reference to nonexistent $ac_cv_c_altivec_abi

5 years agosnap: update package names to use on Ubuntu Zesty.
Konstantin Pavlov [Tue, 1 Nov 2016 14:48:05 +0000 (17:48 +0300)]
snap: update package names to use on Ubuntu Zesty.

5 years agost: fix flawed logic
Rémi Denis-Courmont [Tue, 1 Nov 2016 14:39:01 +0000 (16:39 +0200)]
st: fix flawed logic

Refer to fed7e7951b9cc782c27abab47760ded69360a381.

5 years agoxiph: rewrite ParseFlacPicture() w/o integer overflows (fixes #17592)
Rémi Denis-Courmont [Tue, 1 Nov 2016 14:27:30 +0000 (16:27 +0200)]
xiph: rewrite ParseFlacPicture() w/o integer overflows (fixes #17592)

5 years agomacosx: advanced prefs: only choose slider if we have limits set
David Fuhrmann [Tue, 1 Nov 2016 14:10:50 +0000 (15:10 +0100)]
macosx: advanced prefs: only choose slider if we have limits set

The RangedXXControls only make much sense if we have sensible
limits.

5 years agomacosx: Add VLCFSPanelController.h to the dummy target as well
David Fuhrmann [Tue, 1 Nov 2016 13:52:10 +0000 (14:52 +0100)]
macosx: Add VLCFSPanelController.h to the dummy target as well

5 years agotests/tls: Disable checks for ALPN on apple platforms
David Fuhrmann [Tue, 1 Nov 2016 13:35:08 +0000 (14:35 +0100)]
tests/tls: Disable checks for ALPN on apple platforms

On Apple platforms, ALPN does not work as securetransport does
not provide any public API for that. So do not check for that
feature until support is added.

5 years agoflac: fix leaks on error
Rémi Denis-Courmont [Tue, 1 Nov 2016 14:09:14 +0000 (16:09 +0200)]
flac: fix leaks on error

5 years agopacketizer: hevc: rename limits
Francois Cartegnie [Tue, 1 Nov 2016 00:33:16 +0000 (01:33 +0100)]
packetizer: hevc: rename limits

5 years agopacketizer: h264: fix invalid deref (fix #17585)
Francois Cartegnie [Tue, 1 Nov 2016 00:24:48 +0000 (01:24 +0100)]
packetizer: h264: fix invalid deref (fix #17585)

5 years agolua: don't return pointless, wrong URL meta data
Pierre Ynard [Mon, 31 Oct 2016 22:52:42 +0000 (23:52 +0100)]
lua: don't return pointless, wrong URL meta data

Don't return "url = vlc.path", first that's not a valid URL, then the
runtime already sets it automatically to the input URL by default.

5 years agolua: update interface script examples in README.txt
Pierre Ynard [Mon, 31 Oct 2016 20:59:08 +0000 (21:59 +0100)]
lua: update interface script examples in README.txt

5 years agolua: update playlist script examples in README.txt
Pierre Ynard [Mon, 31 Oct 2016 20:48:12 +0000 (21:48 +0100)]
lua: update playlist script examples in README.txt

Name well-maintained, varied and relevant scripts.

5 years agocontrib: bpg: update to 0.9.7
Tristan Matthews [Mon, 31 Oct 2016 20:16:57 +0000 (16:16 -0400)]
contrib: bpg: update to 0.9.7

5 years agodemux: mp4: fix read overflow
Francois Cartegnie [Mon, 31 Oct 2016 20:37:22 +0000 (21:37 +0100)]
demux: mp4: fix read overflow

5 years agoyoutube_homepage.lua: remove broken script
Pierre Ynard [Mon, 31 Oct 2016 20:30:01 +0000 (21:30 +0100)]
youtube_homepage.lua: remove broken script

This must have long been broken, also if anything this should really be
a service discovery script instead.

Ref. #17488

5 years agodemux: mp4: esds heap buffer ofw (fix #17856)
Francois Cartegnie [Mon, 31 Oct 2016 20:11:05 +0000 (21:11 +0100)]
demux: mp4: esds heap buffer ofw (fix #17856)

5 years agoappletrailers.lua: Fix script for website changes
Marvin Scholz [Mon, 31 Oct 2016 19:51:59 +0000 (20:51 +0100)]
appletrailers.lua: Fix script for website changes

Fix the Script to work again with the changed
Apple trailers website.

Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
5 years agodemux: mp4: chunk matching does not need frag flag
Francois Cartegnie [Mon, 31 Oct 2016 17:08:22 +0000 (18:08 +0100)]
demux: mp4: chunk matching does not need frag flag

5 years agodemux: mp4: rewrite main non fragmented Demux logic
Francois Cartegnie [Fri, 28 Oct 2016 13:19:54 +0000 (15:19 +0200)]
demux: mp4: rewrite main non fragmented Demux logic

Makes main demux aware of interleaving, and avoid
access layer seeks. Also improves the large interleaves
and non interleaved playback.

Fixes the pcr jumps, as a min() dts based logic isn't
suitable for edit lists.

Improves empty edits handling by keeping demuxing on
empty samples time.

5 years agodemux: mp4: add chunk virtual trun
Francois Cartegnie [Mon, 31 Oct 2016 10:09:16 +0000 (11:09 +0100)]
demux: mp4: add chunk virtual trun

Adds continuity sequence counter,
like fragmented mp4 truns

5 years agodemux: mp4: fix and improve interleaving detection
Francois Cartegnie [Fri, 28 Oct 2016 21:10:50 +0000 (23:10 +0200)]
demux: mp4: fix and improve interleaving detection

On compressed content, all chunks are separate

5 years agodemux: mp4: set discontinuity on edit list change
Francois Cartegnie [Mon, 31 Oct 2016 16:04:24 +0000 (17:04 +0100)]
demux: mp4: set discontinuity on edit list change

fixes timestamp conversion errors using avcodec
refs samples/mov/editlist/menace00.mov

5 years agostream: assert that read size is well defined
Rémi Denis-Courmont [Mon, 31 Oct 2016 08:00:39 +0000 (10:00 +0200)]
stream: assert that read size is well defined

The result of a read operation is a signed size_t, and cannot be
negative (except on error). Thus reading more than SSIZE_MAX bytes at
once is not well defined.

(Note: POSIX marks it as implementation-defined, and we cannot rely on
 much given the different implementations.)

In practice, this is not really a limitation for regular reads as
allocating a contiguous output buffer of more than SSIZE_MAX bytes is
essentially impossible. It can however be a problem when skipping data
(buffer pointer is NULL), especially on 32-bits platforms.

To skip such large amount of data, seeking is recommended instead,
e.g.:

    vlc_stream_Seek(s, vlc_stream_Tell() + skip);

instead of:

    vlc_stream_Read(s, NULL, skip);

5 years agomacosx: Correct spelling mistakes in fscontroller
Marvin Scholz [Sun, 30 Oct 2016 22:21:10 +0000 (23:21 +0100)]
macosx: Correct spelling mistakes in fscontroller

5 years agomacosx: Remove fscontroller assets
Marvin Scholz [Tue, 11 Oct 2016 09:02:28 +0000 (11:02 +0200)]
macosx: Remove fscontroller assets

Remove the old fullscreen controller assets and
their references from the Makefile and Xcode
project.

5 years agomacosx: Remove old fscontroller source code
Marvin Scholz [Tue, 11 Oct 2016 08:55:34 +0000 (10:55 +0200)]
macosx: Remove old fscontroller source code

Removes the old VLCFSPanel, and references to the
source files from the makefiles, potfiles and
the Xcode project.