vlc.git
2 years agoaout: reset stereo-mode when a new aout is created
Thomas Guillem [Mon, 17 Jul 2017 11:36:28 +0000 (13:36 +0200)]
aout: reset stereo-mode when a new aout is created

2 years agoaout: don't restart the decoder when changing stereo-mode
Thomas Guillem [Mon, 17 Jul 2017 11:50:18 +0000 (13:50 +0200)]
aout: don't restart the decoder when changing stereo-mode

2 years agoaout: add comment
Thomas Guillem [Mon, 17 Jul 2017 11:44:42 +0000 (13:44 +0200)]
aout: add comment

2 years agoaout: define AOUT_RESTART_* as flags
Thomas Guillem [Mon, 17 Jul 2017 11:35:31 +0000 (13:35 +0200)]
aout: define AOUT_RESTART_* as flags

These 2 defines are already used as flags in audio_output/dec.c

2 years agoaout: refactor default stereo-mode setting
Thomas Guillem [Mon, 17 Jul 2017 11:33:28 +0000 (13:33 +0200)]
aout: refactor default stereo-mode setting

2 years agodemux: adaptive: cleanup current source (fix #17553)
Francois Cartegnie [Thu, 13 Jul 2017 15:38:57 +0000 (17:38 +0200)]
demux: adaptive: cleanup current source (fix #17553)

and potential crash

2 years agohw: coreimage: add filters
Victorien Le Couviour--Tuffet [Thu, 13 Jul 2017 13:29:13 +0000 (15:29 +0200)]
hw: coreimage: add filters

adjust / invert / posterize / sepia / sharpen

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovideo-chroma: add cvpx to cvpx converter
Victorien Le Couviour--Tuffet [Thu, 13 Jul 2017 12:39:59 +0000 (14:39 +0200)]
video-chroma: add cvpx to cvpx converter

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoMODULES_LIST: fix alphabetical ordering
Victorien Le Couviour--Tuffet [Thu, 13 Jul 2017 13:31:30 +0000 (15:31 +0200)]
MODULES_LIST: fix alphabetical ordering

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoes: replace i_original_channels with i_chan_mode
Thomas Guillem [Wed, 28 Jun 2017 13:02:34 +0000 (15:02 +0200)]
es: replace i_original_channels with i_chan_mode

Rename i_original_channels to i_chan_mode. For now, chan modes can be
DOLBYSTEREO or DUALMONO.

This new value, i_chan_mode, should only be set by demuxes/codecs/packetizers
if there is a special stereo mode to handle.

2 years agoavcodec/audio: move DUALMONO hack in avcodec
Thomas Guillem [Wed, 28 Jun 2017 14:00:55 +0000 (16:00 +0200)]
avcodec/audio: move DUALMONO hack in avcodec

aout_CheckChannelExtraction() is only used by avcodec.

2 years agoes: drop AOUT_CHAN_REVERSESTEREO
Thomas Guillem [Thu, 13 Jul 2017 12:21:36 +0000 (14:21 +0200)]
es: drop AOUT_CHAN_REVERSESTEREO

2 years agoaout: don't print reverse stereo channels info
Thomas Guillem [Thu, 13 Jul 2017 12:20:28 +0000 (14:20 +0200)]
aout: don't print reverse stereo channels info

As this flag is only set by the user, we don't really care to print this debug
info.

2 years agodca: drop reverse-stereo support
Thomas Guillem [Thu, 13 Jul 2017 12:19:26 +0000 (14:19 +0200)]
dca: drop reverse-stereo support

This code path was never used since the AOUT_CHAN_REVERSESTEREO flag is never
set from the input or from this codec.

2 years agoa52: drop reverse-stereo support
Thomas Guillem [Thu, 13 Jul 2017 12:19:06 +0000 (14:19 +0200)]
a52: drop reverse-stereo support

This code path was never used since the AOUT_CHAN_REVERSESTEREO flag is never
set from the input or from this codec.

2 years agochannel_mixer: trival: drop dual/reverse/left/right support
Thomas Guillem [Thu, 13 Jul 2017 12:17:39 +0000 (14:17 +0200)]
channel_mixer: trival: drop dual/reverse/left/right support

2 years agoaout: remap in order to handle stereo modes
Thomas Guillem [Thu, 13 Jul 2017 12:14:50 +0000 (14:14 +0200)]
aout: remap in order to handle stereo modes

This commit removes the usage of i_original_channels to handle stereo modes.

aout_OutputNew will now fill the remap array if a special stereo-mode needs to
be handled.

2 years agoaout: aout_FiltersNew() can now remap channels
Thomas Guillem [Thu, 13 Jul 2017 09:43:16 +0000 (11:43 +0200)]
aout: aout_FiltersNew() can now remap channels

Add the possibility to pass an array of chan orders to the aout_FiltersNew
function.

2 years agochannel_mixer: remap: parse config_chain
Thomas Guillem [Thu, 13 Jul 2017 09:34:16 +0000 (11:34 +0200)]
channel_mixer: remap: parse config_chain

2 years agochannel_mixer: remap: handle -1 idx
Thomas Guillem [Thu, 13 Jul 2017 09:33:08 +0000 (11:33 +0200)]
channel_mixer: remap: handle -1 idx

And check variables boundaries.
-1 is now used to disable an input channel.

2 years agochannel_mixer: remap: override out format if not compatible
Thomas Guillem [Thu, 13 Jul 2017 07:22:46 +0000 (09:22 +0200)]
channel_mixer: remap: override out format if not compatible

2 years agoaout: stereo-mode can now be always forced
Thomas Guillem [Tue, 11 Jul 2017 12:03:15 +0000 (14:03 +0200)]
aout: stereo-mode can now be always forced

Can be used to force downmix to stereo.

2 years agoaout: increase stereo-mode lifecycle
Thomas Guillem [Tue, 11 Jul 2017 11:05:20 +0000 (13:05 +0200)]
aout: increase stereo-mode lifecycle

It's not reset anymore when the aout is restarted

2 years agogl: vaapi: fix double close
Thomas Guillem [Thu, 13 Jul 2017 13:52:47 +0000 (15:52 +0200)]
gl: vaapi: fix double close

drm_fd is already closed from tc_vaegl_init in case of error.

2 years agogl: vaapi: add missing breaks
Thomas Guillem [Thu, 13 Jul 2017 13:21:01 +0000 (15:21 +0200)]
gl: vaapi: add missing breaks

2 years agodemux: adaptive: skip get_empty for audio
Francois Cartegnie [Thu, 13 Jul 2017 12:01:13 +0000 (14:01 +0200)]
demux: adaptive: skip get_empty for audio

2 years agodemux: adaptive: rename fakeesout->drain
Francois Cartegnie [Thu, 13 Jul 2017 09:42:37 +0000 (11:42 +0200)]
demux: adaptive: rename fakeesout->drain

2 years agodemux: adaptive: explicitely call drain from eof
Francois Cartegnie [Wed, 12 Jul 2017 15:54:10 +0000 (17:54 +0200)]
demux: adaptive: explicitely call drain from eof

2 years agodemux: adaptive: s/flush/drain
Francois Cartegnie [Wed, 12 Jul 2017 15:20:21 +0000 (17:20 +0200)]
demux: adaptive: s/flush/drain

2 years agodemux/adaptive: fix incorrect PCR
Zhao Zhili [Fri, 7 Jul 2017 03:52:44 +0000 (11:52 +0800)]
demux/adaptive: fix incorrect PCR

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
2 years agosout: rtp: rename flag to spec name
Francois Cartegnie [Thu, 13 Jul 2017 12:10:20 +0000 (14:10 +0200)]
sout: rtp: rename flag to spec name

2 years agosout: rtp: clear out M-bit flag from TS/PS rtp header
Francois Cartegnie [Thu, 13 Jul 2017 13:11:10 +0000 (15:11 +0200)]
sout: rtp: clear out M-bit flag from TS/PS rtp header

2 years agochannel_mixer: trivial: update buffer size when dropping
Thomas Guillem [Thu, 13 Jul 2017 13:05:49 +0000 (15:05 +0200)]
channel_mixer: trivial: update buffer size when dropping

This fixes an assert in aout_OutputPlay() when the aout get too much data.

2 years agomacosx: correct adjust's gamma slider binding
Victorien Le Couviour--Tuffet [Fri, 7 Jul 2017 16:57:59 +0000 (18:57 +0200)]
macosx: correct adjust's gamma slider binding

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: always load default audio profile if apply profile is false
Victorien Le Couviour--Tuffet [Tue, 4 Jul 2017 02:13:17 +0000 (04:13 +0200)]
macosx: always load default audio profile if apply profile is false

It is annoying to load the last selected video profile when the audio effects
window opens if the apply last profile checkbox was not checked.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save default audio profile as custom when quiting
Victorien Le Couviour--Tuffet [Tue, 4 Jul 2017 07:08:56 +0000 (09:08 +0200)]
macosx: save default audio profile as custom when quiting

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save equalizer preset variables into playlist
Victorien Le Couviour--Tuffet [Tue, 4 Jul 2017 02:04:34 +0000 (04:04 +0200)]
macosx: save equalizer preset variables into playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't remove default audio profile
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 19:55:28 +0000 (21:55 +0200)]
macosx: don't remove default audio profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't save default audio profile
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 19:53:48 +0000 (21:53 +0200)]
macosx: don't save default audio profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't reload default audio profile if already loaded
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 19:51:40 +0000 (21:51 +0200)]
macosx: don't reload default audio profile if already loaded

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: load audio profile at startup
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 17:29:09 +0000 (19:29 +0200)]
macosx: load audio profile at startup

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: add apply audio profile at startup checkbox
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 17:13:24 +0000 (19:13 +0200)]
macosx: add apply audio profile at startup checkbox

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: remove spaces after bracket
Victorien Le Couviour--Tuffet [Tue, 4 Jul 2017 07:09:16 +0000 (09:09 +0200)]
macosx: remove spaces after bracket

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: always load default video profile if apply profile is false
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 18:06:01 +0000 (20:06 +0200)]
macosx: always load default video profile if apply profile is false

It is annoying to load the last selected video profile when the video effects
window opens if the apply last profile checkbox was not checked.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save default video profile as custom when quiting
Victorien Le Couviour--Tuffet [Mon, 3 Jul 2017 18:03:56 +0000 (20:03 +0200)]
macosx: save default video profile as custom when quiting

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't remove default video profile
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 13:21:00 +0000 (15:21 +0200)]
macosx: don't remove default video profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't save default video profile
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 13:19:26 +0000 (15:19 +0200)]
macosx: don't save default video profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't reload default video profile if already loaded
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 13:18:14 +0000 (15:18 +0200)]
macosx: don't reload default video profile if already loaded

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: load video profile at startup
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 13:14:00 +0000 (15:14 +0200)]
macosx: load video profile at startup

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: add apply video profile at startup checkbox
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 13:09:00 +0000 (15:09 +0200)]
macosx: add apply video profile at startup checkbox

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: remove false warning
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 12:44:55 +0000 (14:44 +0200)]
macosx: remove false warning

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: more verbose msg_Dbg in VLCCoreInteration::setVideoFilter
Victorien Le Couviour--Tuffet [Sun, 2 Jul 2017 09:01:09 +0000 (11:01 +0200)]
macosx: more verbose msg_Dbg in VLCCoreInteration::setVideoFilter

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't save audio filters options to config
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 13:34:23 +0000 (15:34 +0200)]
macosx: don't save audio filters options to config

Filter option are now only saved to current profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: load audio profile filters options to playlist
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 13:21:49 +0000 (15:21 +0200)]
macosx: load audio profile filters options to playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: always load audio profile equalizer-preset to playlist
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 14:08:56 +0000 (16:08 +0200)]
macosx: always load audio profile equalizer-preset to playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: do not load audio profile filter string to config
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 13:10:29 +0000 (15:10 +0200)]
macosx: do not load audio profile filter string to config

We do not want to check for the aout validity here as
playlist_EnableAudioFilter calls aout_ChangeFilterString which checks for it,
and sets the playlist variable even if the aout is NULL. This is the wanted
behaviour of this patch.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save audio profile from playlist
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 12:50:13 +0000 (14:50 +0200)]
macosx: save audio profile from playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: duplicate audio filters options in the playlist
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 12:19:16 +0000 (14:19 +0200)]
macosx: duplicate audio filters options in the playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: remove unused variable and empty tabulated line
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 09:23:01 +0000 (11:23 +0200)]
macosx: remove unused variable and empty tabulated line

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save/retrieve audio filters to/from the playlist
Victorien Le Couviour--Tuffet [Wed, 28 Jun 2017 09:16:47 +0000 (11:16 +0200)]
macosx: save/retrieve audio filters to/from the playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: apply subsdelay-factor change on all vouts
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 14:39:13 +0000 (16:39 +0200)]
macosx: apply subsdelay-factor change on all vouts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't save TrackSynchronization preferences
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 14:26:53 +0000 (16:26 +0200)]
macosx: don't save TrackSynchronization preferences

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't save video filters options to config
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 15:33:51 +0000 (17:33 +0200)]
macosx: don't save video filters options to config

We only save them in current video profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: create variables before assigning them from video profile
Victorien Le Couviour--Tuffet [Tue, 27 Jun 2017 08:30:10 +0000 (10:30 +0200)]
macosx: create variables before assigning them from video profile

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: load video profile filters strings in all vouts
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 15:53:52 +0000 (17:53 +0200)]
macosx: load video profile filters strings in all vouts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: load video profile filters strings to playlist
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 15:52:48 +0000 (17:52 +0200)]
macosx: load video profile filters strings to playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save video profile from playlist
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 15:35:41 +0000 (17:35 +0200)]
macosx: save video profile from playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: duplicate video filters options in the playlist
Victorien Le Couviour--Tuffet [Tue, 20 Jun 2017 14:35:27 +0000 (16:35 +0200)]
macosx: duplicate video filters options in the playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: set video filters options directly in all vouts
Victorien Le Couviour--Tuffet [Tue, 20 Jun 2017 14:07:31 +0000 (16:07 +0200)]
macosx: set video filters options directly in all vouts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: remove VLCCoreInteraction::restartFilterIfNeeded
Victorien Le Couviour--Tuffet [Mon, 26 Jun 2017 15:10:20 +0000 (17:10 +0200)]
macosx: remove VLCCoreInteraction::restartFilterIfNeeded

Not needed anymore thanks to the proxy callback system which handles the
non-command variables automatically.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: refactor VLCCoreInteraction::setVideoFilterProperty
Victorien Le Couviour--Tuffet [Sat, 17 Jun 2017 17:31:11 +0000 (19:31 +0200)]
macosx: refactor VLCCoreInteraction::setVideoFilterProperty

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: refactor VLCVideoEffectsWindowController::resetValues
Victorien Le Couviour--Tuffet [Fri, 16 Jun 2017 18:22:54 +0000 (20:22 +0200)]
macosx: refactor VLCVideoEffectsWindowController::resetValues

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: apply filters change on all vouts
Victorien Le Couviour--Tuffet [Tue, 20 Jun 2017 14:51:39 +0000 (16:51 +0200)]
macosx: apply filters change on all vouts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: helpers: add getVouts
Victorien Le Couviour--Tuffet [Fri, 16 Jun 2017 09:16:10 +0000 (11:16 +0200)]
macosx: helpers: add getVouts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: save/retrieve video filters to/from the playlist
Victorien Le Couviour--Tuffet [Fri, 16 Jun 2017 09:19:55 +0000 (11:19 +0200)]
macosx: save/retrieve video filters to/from the playlist

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoContribs: update libav/ffmpeg hashes
Jean-Baptiste Kempf [Thu, 13 Jul 2017 09:13:54 +0000 (11:13 +0200)]
Contribs: update libav/ffmpeg hashes

Close #17086

2 years agopicture: initialize each picture with the default field of view
Steve Lhomme [Tue, 11 Jul 2017 11:53:56 +0000 (13:53 +0200)]
picture: initialize each picture with the default field of view

use video_format_Init() rather than memset()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovideo_filter:scene: remove dead code
Steve Lhomme [Tue, 11 Jul 2017 11:42:45 +0000 (13:42 +0200)]
video_filter:scene: remove dead code

fmt_int will be set to p_pic->format later

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agopsychedelic: remove dead code
Steve Lhomme [Tue, 11 Jul 2017 11:36:33 +0000 (13:36 +0200)]
psychedelic: remove dead code

The fmt_out will be a shallow copy of p_filter->fmt_out.video

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agostream_out:mosaic_bridge: clean the local es_format_t after it's used
Steve Lhomme [Tue, 11 Jul 2017 09:41:50 +0000 (11:41 +0200)]
stream_out:mosaic_bridge: clean the local es_format_t after it's used

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomosaic_bridge: no need for a local copy of the input format
Steve Lhomme [Tue, 11 Jul 2017 10:01:11 +0000 (12:01 +0200)]
mosaic_bridge: no need for a local copy of the input format

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovideo_filter:edgedetection: no need for an intermediate variable
Steve Lhomme [Tue, 11 Jul 2017 09:41:08 +0000 (11:41 +0200)]
video_filter:edgedetection: no need for an intermediate variable

the value is forced later in the code

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoaout: constify the video_format_t when requesting a vout
Steve Lhomme [Tue, 11 Jul 2017 11:25:22 +0000 (13:25 +0200)]
aout: constify the video_format_t when requesting a vout

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovout_wrapper: remove local variable
Steve Lhomme [Tue, 11 Jul 2017 11:32:07 +0000 (13:32 +0200)]
vout_wrapper: remove local variable

picture_pool_NewFromFormat() has a const on the video_format_t so we can pass
the original.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodecklink: no need to Clean() the video_format_t before Init()
Steve Lhomme [Tue, 11 Jul 2017 11:34:55 +0000 (13:34 +0200)]
decklink: no need to Clean() the video_format_t before Init()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodemux:mkv: initialize all the mkv_track_t fields in the constructor
Steve Lhomme [Wed, 12 Jul 2017 13:14:59 +0000 (15:14 +0200)]
demux:mkv: initialize all the mkv_track_t fields in the constructor

No object should be left with uninitialized members.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodemux:mkv: fix a compilation warning
Steve Lhomme [Wed, 12 Jul 2017 13:11:41 +0000 (15:11 +0200)]
demux:mkv: fix a compilation warning

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodemux:mkv: use at() instead of array index
Steve Lhomme [Wed, 12 Jul 2017 13:10:13 +0000 (15:10 +0200)]
demux:mkv: use at() instead of array index

The latter seems to do a copy (needs an empty constructor).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoavcodec:fourcc: return VLC_CODEC_UNKNOWN directly instead of 0
Steve Lhomme [Fri, 7 Jul 2017 07:35:44 +0000 (09:35 +0200)]
avcodec:fourcc: return VLC_CODEC_UNKNOWN directly instead of 0

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovlc_fourcc: add a define for "undf" (unidentified codec)
Steve Lhomme [Fri, 7 Jul 2017 07:33:17 +0000 (09:33 +0200)]
vlc_fourcc: add a define for "undf" (unidentified codec)

Technically it could be set to 0

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agochromecast: No need to transcode opus
Hugo Beauzée-Luyssen [Thu, 13 Jul 2017 08:24:34 +0000 (10:24 +0200)]
chromecast: No need to transcode opus

2 years agoxa: Fix fourcc mismatch
Hugo Beauzée-Luyssen [Thu, 13 Jul 2017 07:47:35 +0000 (09:47 +0200)]
xa: Fix fourcc mismatch

2 years agoadpcm: Fix fourcc mismatch
Hugo Beauzée-Luyssen [Thu, 13 Jul 2017 07:44:49 +0000 (09:44 +0200)]
adpcm: Fix fourcc mismatch

2 years agochromecast_demux: Fix double free.
Hugo Beauzée-Luyssen [Wed, 12 Jul 2017 15:42:02 +0000 (17:42 +0200)]
chromecast_demux: Fix double free.

This is now done in the core

2 years agoadpcm: Simplify
Hugo Beauzée-Luyssen [Thu, 13 Jul 2017 07:33:55 +0000 (09:33 +0200)]
adpcm: Simplify

And reorder the fourccs to match the initialization switch

2 years agomacosx: Set/unset demux filter for renderers
Marvin Scholz [Wed, 12 Jul 2017 21:04:31 +0000 (23:04 +0200)]
macosx: Set/unset demux filter for renderers

2 years agomacosx: Add helper to unset rd demux filter
Marvin Scholz [Wed, 12 Jul 2017 21:04:02 +0000 (23:04 +0200)]
macosx: Add helper to unset rd demux filter

2 years agomacosx: Add helper to set rd item demux filter
Marvin Scholz [Wed, 12 Jul 2017 21:03:37 +0000 (23:03 +0200)]
macosx: Add helper to set rd item demux filter

2 years agochannel_mixer: headphone: prepare format on success
Thomas Guillem [Wed, 12 Jul 2017 17:05:27 +0000 (19:05 +0200)]
channel_mixer: headphone: prepare format on success

This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.

2 years agochannel_mixer: mono: prepare format on success
Thomas Guillem [Wed, 12 Jul 2017 17:05:18 +0000 (19:05 +0200)]
channel_mixer: mono: prepare format on success

This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.