]> git.sesse.net Git - vlc/log
vlc
9 years agoAdded forward and rewind (30s) buttons to mobile HTTP remote control
Carlos Fenollosa [Wed, 18 Mar 2015 17:43:23 +0000 (18:43 +0100)]
Added forward and rewind (30s) buttons to mobile HTTP remote control

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodecoder: fix race in spu_new_buffer
Thomas Guillem [Wed, 18 Mar 2015 09:16:44 +0000 (09:16 +0000)]
decoder: fix race in spu_new_buffer

There is a race when starting video with subtitles at a given position (via
--start-time).

If all decoders are flushed early, the video decoder may not have created the
Vout via the decoder_NewPicture call. In that case, spu_new_buffer will be
blocking for 6 seconds. Indeed, spu_new_buffer can block for maximum 6 seconds
when it's waiting for a Vout.

To solve this race, abort spu_new_buffer if decoder is flushing.

How to reproduce the race condition:
./vlc --start-time 3600 <video_with_subtitles>

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoUpdate bookmark list before showing dialog.
Eugen Geist [Thu, 19 Mar 2015 16:57:05 +0000 (16:57 +0000)]
Update bookmark list before showing dialog.

Fixes #2100.

Override toggleVisible of BookmarkDialog to call update before using toggleVisible of QVLCFrame

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agolibass: use the visible area dimensions, not the input dimensions
Steve Lhomme [Fri, 20 Mar 2015 08:07:05 +0000 (08:07 +0000)]
libass: use the visible area dimensions, not the input dimensions

Fixes incorrect offset when playing http://streams.videolan.org/misc/test-files-ccc/vsfilter_general_TestCase.mkv

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agofix teletext framing code in DVB PES packets ignored
Miha Sokolov [Fri, 20 Mar 2015 09:38:51 +0000 (09:38 +0000)]
fix teletext framing code in DVB PES packets ignored

Check the teletext framing code in PES buffer for each of the received lines
and only copy those with correct framing code (p_block->p_buffer[3]) to the
p_sliced buffer that is later forwarded to ZVBI vbi_decode. Invalid lines
will not reach vbi_decode anymore.

When also packets with erroneous framing code are sent to vbi_decode (often
0x00 with some noise), in most cases those are decoded as packet 1/2,
causing the second text line on the teletext page to be overwritten with
spaces. So we need to avoid sending such packets with invalid framing code
to vbi_decode.

Close #14191

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoWin32: don't call setsockopt if compiling for Windows 8.0
Jean-Baptiste Kempf [Fri, 20 Mar 2015 14:47:04 +0000 (15:47 +0100)]
Win32: don't call setsockopt if compiling for Windows 8.0

9 years agoudp: adjust receive buffer for windows 7 and earlier
Ilkka Ollakka [Thu, 19 Mar 2015 06:52:30 +0000 (08:52 +0200)]
udp: adjust receive buffer for windows 7 and earlier

Try to detect runtime what windows version it is running to see if
receive buffers should be increased or leave to OS handling.
Fixes #14200

9 years agoALSA: request large enough buffers first (refs #10422)
Rémi Denis-Courmont [Thu, 19 Mar 2015 21:51:21 +0000 (23:51 +0200)]
ALSA: request large enough buffers first (refs #10422)

With the current input clock and decoder buffering code, getting large
buffers is essential. So favor that over having short audio periods.
(Ideally the audio period should probably be an half or a third of the
PTS delay, rather than hard-coded to 40 ms, but that is a separate
issue).

9 years agovlc_bits.h: drop len field
Francois Cartegnie [Thu, 19 Mar 2015 17:57:44 +0000 (18:57 +0100)]
vlc_bits.h: drop len field

9 years agomux: mp4: vlc_bits regression (fix #14192)
Francois Cartegnie [Thu, 19 Mar 2015 18:00:36 +0000 (19:00 +0100)]
mux: mp4: vlc_bits regression (fix #14192)

commit 6c9bc13fca989feca53a1ccdd609d6c6995a3879

9 years agoplaylist: remove activity callback in favor of input-current
Rémi Denis-Courmont [Thu, 19 Feb 2015 22:11:23 +0000 (00:11 +0200)]
playlist: remove activity callback in favor of input-current

9 years agoplaylist: move input-current, fix race
Rémi Denis-Courmont [Thu, 19 Mar 2015 18:10:12 +0000 (20:10 +0200)]
playlist: move input-current, fix race

See also a6b259b733a0ba0c064377cf07b5bd0c33584b17.

9 years agoblock: remove block_FifoPace()
Rémi Denis-Courmont [Tue, 17 Mar 2015 18:08:02 +0000 (20:08 +0200)]
block: remove block_FifoPace()

9 years agodecoder: avoid block_FifoPace(), fix races
Rémi Denis-Courmont [Wed, 18 Mar 2015 23:04:50 +0000 (01:04 +0200)]
decoder: avoid block_FifoPace(), fix races

9 years agodecoder: remove unused parameter
Rémi Denis-Courmont [Wed, 18 Mar 2015 22:39:29 +0000 (00:39 +0200)]
decoder: remove unused parameter

DecoderSignalWait() had no observable effects if has_data was false. It
could wake up the condition variable, but no thread would wait on that
event.

9 years agoblock: remove block_FifoWake()
Rémi Denis-Courmont [Tue, 17 Mar 2015 18:07:48 +0000 (20:07 +0200)]
block: remove block_FifoWake()

9 years agodecoder: avoid block_FifoWake()
Rémi Denis-Courmont [Tue, 17 Mar 2015 18:19:04 +0000 (20:19 +0200)]
decoder: avoid block_FifoWake()

9 years agoudp: use the new FIFO functions
Rémi Denis-Courmont [Tue, 17 Mar 2015 17:49:42 +0000 (19:49 +0200)]
udp: use the new FIFO functions

9 years agoblock: rewrite block_Fifo(Empty,Get,Put) with the new functions
Rémi Denis-Courmont [Tue, 17 Mar 2015 17:33:31 +0000 (19:33 +0200)]
block: rewrite block_Fifo(Empty,Get,Put) with the new functions

9 years agoblock: add low-level functions for block FIFOs
Rémi Denis-Courmont [Tue, 24 Feb 2015 21:07:36 +0000 (23:07 +0200)]
block: add low-level functions for block FIFOs

In some cases, the thread(s) consuming a FIFO needs to wake up in other
circumstances than the FIFO being non-empty. For that purpose, this new
set of functions is vastly more flexible than block_FifoWake().

9 years agoblock: split block_t and block_fifo_t code
Rémi Denis-Courmont [Thu, 19 Mar 2015 17:05:49 +0000 (19:05 +0200)]
block: split block_t and block_fifo_t code

9 years agodecoder: remove ARM-specific limitation
Rémi Denis-Courmont [Tue, 17 Mar 2015 20:15:09 +0000 (22:15 +0200)]
decoder: remove ARM-specific limitation

There are ARM servers and or HD/UHD-capable STBs. The distinction no
longer makes sense.

9 years agoes_out: remove tautology
Rémi Denis-Courmont [Tue, 17 Mar 2015 19:38:31 +0000 (21:38 +0200)]
es_out: remove tautology

es->p_dec is obviously non-NULL when the loop starts, and the loop
cannot change the value.

9 years agodecoder: remove tautology, add asserts to waiting code
Rémi Denis-Courmont [Wed, 18 Mar 2015 21:29:30 +0000 (23:29 +0200)]
decoder: remove tautology, add asserts to waiting code

9 years agodecoder: remove invalid call, fix races
Rémi Denis-Courmont [Tue, 17 Mar 2015 20:41:46 +0000 (22:41 +0200)]
decoder: remove invalid call, fix races

Calling input_DecoderStopWait() from the decoder thread makes no sense
as it signals a condition variable that only the decoder thread itself
would ever wait on.

More importantly, the call breaks assumptions made by the input thread.
For instance, input_DecoderDecode() assumes p_owner->b_waiting is only
changed by the decoder owner (i.e. input) thread.

9 years agovlc_bits: add bo_set_64_be
Francois Cartegnie [Thu, 19 Mar 2015 14:07:26 +0000 (15:07 +0100)]
vlc_bits: add bo_set_64_be

9 years agovlc_bits: fix bo_set_32be
Francois Cartegnie [Thu, 19 Mar 2015 14:07:05 +0000 (15:07 +0100)]
vlc_bits: fix bo_set_32be

9 years agodemux: ts: fix IOD signedness/warning
Francois Cartegnie [Wed, 18 Mar 2015 17:11:49 +0000 (18:11 +0100)]
demux: ts: fix IOD signedness/warning

9 years agodemux: ts: fix opus signedness/warning
Francois Cartegnie [Wed, 18 Mar 2015 16:52:28 +0000 (17:52 +0100)]
demux: ts: fix opus signedness/warning

9 years agoopus: fix duration signedness
Francois Cartegnie [Wed, 18 Mar 2015 16:51:01 +0000 (17:51 +0100)]
opus: fix duration signedness

9 years agodemux: ts: fix signedness/warnings
Francois Cartegnie [Wed, 18 Mar 2015 16:45:37 +0000 (17:45 +0100)]
demux: ts: fix signedness/warnings

9 years agoMKV: factorize the es_out_Send() and es_out_Control() calls
Steve Lhomme [Thu, 19 Mar 2015 13:12:37 +0000 (13:12 +0000)]
MKV: factorize the es_out_Send() and es_out_Control() calls

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoDirectX/GDI: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED
Steve Lhomme [Wed, 18 Mar 2015 10:05:55 +0000 (10:05 +0000)]
DirectX/GDI: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED

The renderer may be updated in the DMO thread which uses COINIT_MULTITHREADED

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames
Steve Lhomme [Wed, 18 Mar 2015 11:53:53 +0000 (11:53 +0000)]
MKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames

Fixes WMA 9.1 Lossless playback through avcodec

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: fix COOK/ATRAC3 seeking
Steve Lhomme [Thu, 19 Mar 2015 10:06:30 +0000 (10:06 +0000)]
MKV: fix COOK/ATRAC3 seeking

Fixes #14210

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: fix ATRAC3 playback
Steve Lhomme [Wed, 18 Mar 2015 14:35:46 +0000 (14:35 +0000)]
MKV: fix ATRAC3 playback

Fixes #14205

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: A_MS/ACM is not packetized
Steve Lhomme [Wed, 18 Mar 2015 11:48:42 +0000 (11:48 +0000)]
MKV: A_MS/ACM is not packetized

Just like in AVI
See modules/demux/avi/avi.c l461

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoDMO: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED
Steve Lhomme [Wed, 18 Mar 2015 09:57:55 +0000 (09:57 +0000)]
DMO: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED

Fixes #14202

All the other CoInitializeEx() calls and now using multithreading, except for
this code which is called in UpdateRects()
See modules/video_output/msw/common.c l286

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomux: mp4: handle both short and long NALU startcodes (fix #14185)
Francois Cartegnie [Tue, 17 Mar 2015 13:10:14 +0000 (14:10 +0100)]
mux: mp4: handle both short and long NALU startcodes (fix #14185)

9 years agomux: mp4: invalid cast
Francois Cartegnie [Tue, 17 Mar 2015 19:13:30 +0000 (20:13 +0100)]
mux: mp4: invalid cast

commit 8fd834512cf778a89d0fbf2540b0055dec002f42.

9 years agohttplive: leaks on playlist reload/merge (fix #14171)
Francois Cartegnie [Wed, 18 Mar 2015 11:56:15 +0000 (12:56 +0100)]
httplive: leaks on playlist reload/merge (fix #14171)

9 years agodemux: ts: gather data for uncreated es
Francois Cartegnie [Tue, 17 Mar 2015 21:38:56 +0000 (22:38 +0100)]
demux: ts: gather data for uncreated es

should go to pre es queue otherwise first frames/gop are dropped

9 years agoInterface: HTTP server: set proper align when expanding menu buttons
Gina Dobrescu [Tue, 17 Mar 2015 21:27:35 +0000 (21:27 +0000)]
Interface: HTTP server: set proper align when expanding menu buttons

Fixes #13855

The small menu buttons on the left doesn't move downwards anymore when
the menu is expanded

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agosftp: implement directory listing
Petri Hintukainen [Tue, 17 Mar 2015 18:51:10 +0000 (18:51 +0000)]
sftp: implement directory listing

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: use the more accurate i_pcr for GET_TIME and GET_POSITION
Steve Lhomme [Wed, 18 Mar 2015 06:26:55 +0000 (06:26 +0000)]
MKV: use the more accurate i_pcr for GET_TIME and GET_POSITION

similar to what avformat does

I forgot to re-submit that one after the other commits went through.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoblock: simplify block_FifoRelease
Rémi Denis-Courmont [Tue, 17 Mar 2015 17:16:44 +0000 (19:16 +0200)]
block: simplify block_FifoRelease

Since the FIFO is being destroyed, there is no need to lock and to
update the FIFO internal state.

9 years agoudp: avoid alloc/free on I/O error
Rémi Denis-Courmont [Tue, 17 Mar 2015 17:41:04 +0000 (19:41 +0200)]
udp: avoid alloc/free on I/O error

9 years agodecoder: fix data race in input_DecoderIsEmpty()
Rémi Denis-Courmont [Tue, 17 Mar 2015 18:45:51 +0000 (20:45 +0200)]
decoder: fix data race in input_DecoderIsEmpty()

p_dec->fmt_out is owned by the decoder plugin, and can only safely be
accessed by the core from within decoder callbacks, notably the format
update callbacks.

Outside that context, p_owner->fmt has to be used. It contains a copy
of p_dec->fmt_out at the last format update.

9 years agodecoder: remove redundant call to block_FifoEmpty()
Rémi Denis-Courmont [Tue, 17 Mar 2015 17:00:47 +0000 (19:00 +0200)]
decoder: remove redundant call to block_FifoEmpty()

block_FifoRelease() takes care of it.

9 years agoRevert "MKV: Always set an i_pts in a lace otherwise it disturbs seeking performance"
Steve Lhomme [Tue, 17 Mar 2015 13:41:16 +0000 (13:41 +0000)]
Revert "MKV: Always set an i_pts in a lace otherwise it disturbs seeking performance"

This reverts commit 6a16055a3331a4022d12ba29ab002a3257e4c89c.

Fixes #14194
Vorbis doesn't work properly with forced bogus PTS.

The seek issue in #13575 is solved with the DirectSound fixes from #14186

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodo not install dsm plugin twice
Petri Hintukainen [Tue, 17 Mar 2015 07:01:23 +0000 (07:01 +0000)]
do not install dsm plugin twice

On ma, 2015-03-16 at 13:59 +0300, Rémi Denis-Courmont wrote:
> Le 2015-03-16 13:24, Petri Hintukainen a écrit :
> > I tried to enable dsm access plugin in Linux (to get directory
> > browsing
> > support). But "make install" failed with error:
> >
> > libtool: install: error: cannot install `libdsm_plugin.la' to a
> > directory not ending in /usr/lib/vlc/plugins/services_discovery
> >
> > It looks like the module is installed twice: first to access/, then
> > to
> > services_discovery/. Installing it only to services_discovery/ seems
> > to
> > work.
>
> The (rest of the) Makefile rules are in access/ though...

Removing it from services_discovery/Makefile.am in commit
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42350148049e6a91db1f6876d1e0765640da0f7d
didn't fix the problem with make install.

With
../configure --prefix=/usr --enable-dsm --disable-smb
make && sudo make install

I still get

libtool: install: error: cannot install `libdsm_plugin.la' to a
directory not ending in /usr/lib/vlc/plugins/services_discovery

Alternative patch attached.

(or maybe I have broken libtool ... ?)

>From 43e5502bb44f8611eb1d61cc8fa6c1c711dce32b Mon Sep 17 00:00:00 2001
From: Petri Hintukainen <phintuka@gmail.com>
Date: Tue, 17 Mar 2015 09:52:47 +0200
Subject: [PATCH] dsm: fix runtime library search path

Fixes "libtool: install: error: cannot install `libdsm_plugin.la'
to a directory not ending in /usr/lib/vlc/plugins/services_discovery"

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: fix a memory leak
Steve Lhomme [Mon, 16 Mar 2015 13:13:09 +0000 (13:13 +0000)]
MKV: fix a memory leak

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoQt: do not emit signals from the MIM constructor
Jean-Baptiste Kempf [Tue, 17 Mar 2015 17:03:17 +0000 (18:03 +0100)]
Qt: do not emit signals from the MIM constructor

Should close #14162

9 years agoQt: MIM: code cosmetics
Jean-Baptiste Kempf [Tue, 17 Mar 2015 16:23:54 +0000 (17:23 +0100)]
Qt: MIM: code cosmetics

9 years agoQt: MIM initialize p_input through constructor parameter
Jean-Baptiste Kempf [Tue, 17 Mar 2015 16:21:58 +0000 (17:21 +0100)]
Qt: MIM initialize p_input through constructor parameter

9 years agomux: mp4: fix NALU size endianness
Francois Cartegnie [Tue, 17 Mar 2015 15:57:10 +0000 (16:57 +0100)]
mux: mp4: fix NALU size endianness

9 years agovlc_block: fix NULL dereference in block_ChainGather
Francois Cartegnie [Tue, 17 Mar 2015 15:03:44 +0000 (16:03 +0100)]
vlc_block: fix NULL dereference in block_ChainGather

9 years agodemux: mp4: don't NULL dereference on failed realloc
Francois Cartegnie [Tue, 17 Mar 2015 14:59:41 +0000 (15:59 +0100)]
demux: mp4: don't NULL dereference on failed realloc

9 years agodemux: ts: set fmt id on all es and add collision avoidance for extra es
Francois Cartegnie [Tue, 17 Mar 2015 00:48:01 +0000 (01:48 +0100)]
demux: ts: set fmt id on all es and add collision avoidance for extra es

9 years agodirect3d11: Fix mingw build
Hugo Beauzée-Luyssen [Tue, 17 Mar 2015 09:50:51 +0000 (10:50 +0100)]
direct3d11: Fix mingw build

9 years agodemux: ts: fix potential segfault
Francois Cartegnie [Mon, 16 Mar 2015 23:38:46 +0000 (00:38 +0100)]
demux: ts: fix potential segfault

introduced by 1dec820c43290fe19ac8b291d70353943275b8fc

9 years agodemux: ts: fix uninitialized fields with teletext es
Francois Cartegnie [Mon, 16 Mar 2015 19:48:30 +0000 (20:48 +0100)]
demux: ts: fix uninitialized fields with teletext es

9 years agodemux: ts: update probing
Francois Cartegnie [Mon, 16 Mar 2015 19:10:38 +0000 (20:10 +0100)]
demux: ts: update probing

fixes invalid length/time with arib
and handles shared pid

9 years agoMFT: GUID_AC3 should be defined in Mingw-w64 4.0
Jean-Baptiste Kempf [Mon, 16 Mar 2015 18:11:18 +0000 (19:11 +0100)]
MFT: GUID_AC3 should be defined in Mingw-w64 4.0

Of course, it's technically a GCC bug, because selectany is broken, but
there is no simple fix for that.

9 years agoALSA: log the device string that is actually opened
Rémi Denis-Courmont [Mon, 16 Mar 2015 18:04:33 +0000 (20:04 +0200)]
ALSA: log the device string that is actually opened

9 years agoALSA: only append AES parameters to iec958 and hdmi plugs
Rémi Denis-Courmont [Mon, 16 Mar 2015 18:01:05 +0000 (20:01 +0200)]
ALSA: only append AES parameters to iec958 and hdmi plugs

Other ALSA plugs do not support those parameters.

Regresion from 7a19c0b41e4c43392f423338d41b0bcebc3e5329.

9 years agobuild: check for gmtime_r and localtime_r with the new macro.
Diego Elio Pettenò [Sun, 15 Mar 2015 10:49:40 +0000 (10:49 +0000)]
build: check for gmtime_r and localtime_r with the new macro.

This makes sure that the two functions are found when building on mingw32,
as the functions are defined as static inline rather than as library
symbols.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
9 years agobuild: create a macro to check for, and replace, possibly-inline functions.
Diego Elio Pettenò [Sun, 15 Mar 2015 10:49:39 +0000 (10:49 +0000)]
build: create a macro to check for, and replace, possibly-inline functions.

mingw (both 32 and 64) provides a number of functions that have no C
linkage, but are only available as static inline. Define a macro that can
check for the function declaration but acts like AC_REPLACE_FUNC.

Use the new macro for asprintf/vasprintf (previously implemented in
configure.ac directly).

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
9 years agocompat: fix localtime_r() replacement
Rémi Denis-Courmont [Mon, 16 Mar 2015 17:20:44 +0000 (19:20 +0200)]
compat: fix localtime_r() replacement

 - Do not clobber thread-specific state on Windows
 - Be thread-safe on non-Windows

9 years agowin32: add assertions for unchecked CoInitializeEx() calls
Rémi Denis-Courmont [Mon, 16 Mar 2015 17:03:02 +0000 (19:03 +0200)]
win32: add assertions for unchecked CoInitializeEx() calls

9 years agodmo: fix format string
Rémi Denis-Courmont [Mon, 16 Mar 2015 17:00:53 +0000 (19:00 +0200)]
dmo: fix format string

9 years agodmo: avoid useless string conversion
Rémi Denis-Courmont [Mon, 16 Mar 2015 16:58:51 +0000 (18:58 +0200)]
dmo: avoid useless string conversion

9 years agodmo: fix invalid string casts
Rémi Denis-Courmont [Mon, 16 Mar 2015 16:57:06 +0000 (18:57 +0200)]
dmo: fix invalid string casts

9 years agodtv: fix build with Linux DVB versions <= 5.8 (fixes #14156)
Rémi Denis-Courmont [Mon, 16 Mar 2015 16:24:07 +0000 (18:24 +0200)]
dtv: fix build with Linux DVB versions <= 5.8 (fixes #14156)

9 years agots: dvbpsi: don't spam with irrelevant errors
Francois Cartegnie [Mon, 16 Mar 2015 16:11:40 +0000 (17:11 +0100)]
ts: dvbpsi: don't spam with irrelevant errors

should be fixed from libdvbpsi >= 1.2.0

9 years agoSD: do not install dsm plugin twice
Jean-Baptiste Kempf [Mon, 16 Mar 2015 13:36:32 +0000 (14:36 +0100)]
SD: do not install dsm plugin twice

9 years agoMKV: Always set an i_pts in a lace otherwise it disturbs seeking performance
Steve Lhomme [Mon, 16 Mar 2015 09:45:54 +0000 (09:45 +0000)]
MKV: Always set an i_pts in a lace otherwise it disturbs seeking performance

Using VLC_PTS_INVALID disturbs seeking.

It only applies to audio frames which are meant to be contiguous.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: rename the Matroska timestamp fields to differentiate from VLC_TS ones
Steve Lhomme [Mon, 16 Mar 2015 09:41:09 +0000 (09:41 +0000)]
MKV: rename the Matroska timestamp fields to differentiate from VLC_TS ones

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoWin32: Fix supported types not registered properly by NSIS installer
Jonathan McGowan [Mon, 16 Mar 2015 11:43:54 +0000 (11:43 +0000)]
Win32: Fix supported types not registered properly by NSIS installer

A bad parameter definition in function RegisterExtension resulted in the same value entry being written every time ("${EXT}"="").

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agosubsusf: Remove unneeded initializations
Hugo Beauzée-Luyssen [Mon, 16 Mar 2015 12:32:53 +0000 (13:32 +0100)]
subsusf: Remove unneeded initializations

9 years agoAdd TTML fourcc
Hugo Beauzée-Luyssen [Mon, 16 Mar 2015 12:29:00 +0000 (13:29 +0100)]
Add TTML fourcc

9 years agoAdd tshd and rv64 FourCC for H264
Jean-Baptiste Kempf [Mon, 16 Mar 2015 10:45:03 +0000 (11:45 +0100)]
Add tshd and rv64 FourCC for H264

9 years agomediacodec: add a function that checks if codec is blacklisted
Thomas Guillem [Mon, 16 Mar 2015 08:29:54 +0000 (08:29 +0000)]
mediacodec: add a function that checks if codec is blacklisted

This also fixes a crash because of a missing __MIN(strlen()) for MTK MPEG4.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: send the proper PCR before es_out_Send() of the packet
Steve Lhomme [Mon, 16 Mar 2015 09:02:05 +0000 (10:02 +0100)]
MKV: send the proper PCR before es_out_Send() of the packet

replaces previous similar patches, now with proper VLC_TS adjusting

Fixes #13575
Fixes #11847 which had time display issues

The new PCR logic is borrowed from
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/demux/avformat/demux.c;hb=HEAD#l776

A PCR is always sent now, unless i_last_dts is not set, meaning the first
packet doesn't have a proper DTS (invalid data at the beggining)

The i_pts is not set to 0 anymore in a lace as it disturbs seeking performance

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: no need to shift the dts/pts twice in some cases anymore
Steve Lhomme [Mon, 16 Mar 2015 08:20:47 +0000 (09:20 +0100)]
MKV: no need to shift the dts/pts twice in some cases anymore

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: force 64 bits constants the right way
Steve Lhomme [Mon, 16 Mar 2015 08:31:32 +0000 (09:31 +0100)]
MKV: force 64 bits constants the right way

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: fix mixup between VLC timestamps and Matroska timestamps
Steve Lhomme [Mon, 16 Mar 2015 08:07:22 +0000 (09:07 +0100)]
MKV: fix mixup between VLC timestamps and Matroska timestamps

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoMKV: don't use i_last_dts if it's invalid
Steve Lhomme [Mon, 16 Mar 2015 08:17:18 +0000 (09:17 +0100)]
MKV: don't use i_last_dts if it's invalid

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodemux: ts: only set self pcr to its program
Francois Cartegnie [Sun, 15 Mar 2015 21:27:05 +0000 (22:27 +0100)]
demux: ts: only set self pcr to its program

We can't support shared pid/pcr for now

9 years agodemux: ts: check other programs/shared pcr for PCRHandle
Francois Cartegnie [Sun, 15 Mar 2015 16:34:30 +0000 (17:34 +0100)]
demux: ts: check other programs/shared pcr for PCRHandle

9 years agodemux: ts: reject shared pes for now
Francois Cartegnie [Sun, 15 Mar 2015 13:06:20 +0000 (14:06 +0100)]
demux: ts: reject shared pes for now

We need one ES by program

9 years agodemux: ts: fix wrong flush condition
Francois Cartegnie [Sun, 15 Mar 2015 13:04:14 +0000 (14:04 +0100)]
demux: ts: fix wrong flush condition

9 years agodemux: ts: use a more sane default pcr pid
Francois Cartegnie [Sat, 14 Mar 2015 23:58:46 +0000 (00:58 +0100)]
demux: ts: use a more sane default pcr pid

9 years agodemux: ts: do not create multiple stream filter
Francois Cartegnie [Sat, 14 Mar 2015 23:26:50 +0000 (00:26 +0100)]
demux: ts: do not create multiple stream filter

can happen with multiple arib programs

9 years agodemux: ts: apply pcr filter last and update it on fixup
Francois Cartegnie [Fri, 13 Mar 2015 20:27:36 +0000 (21:27 +0100)]
demux: ts: apply pcr filter last and update it on fixup

9 years agodemux: ts: validate es from non filtered streams
Francois Cartegnie [Fri, 13 Mar 2015 20:10:13 +0000 (21:10 +0100)]
demux: ts: validate es from non filtered streams

9 years agopacketizer: mpeg4audio: don't spam with warnings
Francois Cartegnie [Fri, 13 Mar 2015 20:02:45 +0000 (21:02 +0100)]
packetizer: mpeg4audio: don't spam with warnings

If frames have CRC, console is spammed.
CRC warning should happen only once.

9 years agodemux: ts: directly ignore scrambled content
Francois Cartegnie [Fri, 13 Mar 2015 16:45:56 +0000 (17:45 +0100)]
demux: ts: directly ignore scrambled content

9 years agodemux: ts: typo and add debug info
Francois Cartegnie [Fri, 13 Mar 2015 15:47:05 +0000 (16:47 +0100)]
demux: ts: typo and add debug info

9 years agodemux: ts: fix delayed es creation after filtering
Francois Cartegnie [Fri, 13 Mar 2015 15:24:52 +0000 (16:24 +0100)]
demux: ts: fix delayed es creation after filtering