vlc.git
5 years agodemux: mp4: split debug info
Francois Cartegnie [Wed, 24 Sep 2014 20:30:18 +0000 (22:30 +0200)]
demux: mp4: split debug info

5 years agodemux: mp4: flag incomplete boxes
Francois Cartegnie [Wed, 24 Sep 2014 20:25:16 +0000 (22:25 +0200)]
demux: mp4: flag incomplete boxes

5 years agodemux: check stream_Read() (probably fixes #12276)
Rémi Denis-Courmont [Wed, 24 Sep 2014 18:52:16 +0000 (21:52 +0300)]
demux: check stream_Read() (probably fixes #12276)

stream_Read() can always fail.

5 years agodemux: mp4: add support for EIA-608 (fix #6775)
Francois Cartegnie [Wed, 24 Sep 2014 17:30:51 +0000 (19:30 +0200)]
demux: mp4: add support for EIA-608 (fix #6775)

5 years agofourcc: add EIA608
Francois Cartegnie [Wed, 24 Sep 2014 14:03:05 +0000 (16:03 +0200)]
fourcc: add EIA608

5 years agodemux: mp4: factorize block reading/filtering
Francois Cartegnie [Wed, 24 Sep 2014 14:42:31 +0000 (16:42 +0200)]
demux: mp4: factorize block reading/filtering

5 years agodemux: mp4: don't read at all if not content
Francois Cartegnie [Wed, 24 Sep 2014 11:32:37 +0000 (13:32 +0200)]
demux: mp4: don't read at all if not content

fixes 1 byte read overflow

5 years agodemux: ogg: fix packet count heap overflow (fix #12265)
Francois Cartegnie [Wed, 24 Sep 2014 10:58:04 +0000 (12:58 +0200)]
demux: ogg: fix packet count heap overflow (fix #12265)

5 years agodemux: mp4: fix heap read overflow in avcc (fix #12267)
Francois Cartegnie [Mon, 22 Sep 2014 19:10:43 +0000 (21:10 +0200)]
demux: mp4: fix heap read overflow in avcc (fix #12267)

5 years agodemux: ogg: fix headers validation
Francois Cartegnie [Tue, 23 Sep 2014 13:27:34 +0000 (15:27 +0200)]
demux: ogg: fix headers validation

refs #12270

5 years agodemux: ogg: don't use incomplete vorbis headers (fix #12270)
Francois Cartegnie [Tue, 23 Sep 2014 12:58:29 +0000 (14:58 +0200)]
demux: ogg: don't use incomplete vorbis headers (fix #12270)

5 years agodemux: ogg: Don't read skeleton if no bones first
Francois Cartegnie [Tue, 23 Sep 2014 10:49:06 +0000 (12:49 +0200)]
demux: ogg: Don't read skeleton if no bones first

5 years agohttpcookies: fix memleak
Rafaël Carré [Tue, 23 Sep 2014 11:33:01 +0000 (13:33 +0200)]
httpcookies: fix memleak

5 years agoAllow --sub-track to work with EIA-608 captions, and fix crash on exit
Devin Heitmueller [Sun, 21 Sep 2014 16:54:54 +0000 (12:54 -0400)]
Allow --sub-track to work with EIA-608 captions, and fix crash on exit

Prior to this patch, if the user specified the --sub-track argument on
the command line, it would not work with MPEG2 streams that contain
EIA-608 closed captions.  It would also cause an abort() on exit.

The crash was because the various functions that select/unselect
streams would check for the p_master member, which isn't set until
after EsOutAdd().  The call to EsOutAdd itself though would call
EsSelect(), which would treat the ES as a regular subtitle stream
and cause a resource leak -- which would cause an abort at exit.

The other change actually makes --sub-track work with the special
case of EIA-608 captions.

Signed-off-by: Rafaël Carré <funman@videolan.org>
5 years agodemux: mp4: fix heap buffer overflow (fix #12266)
Francois Cartegnie [Mon, 22 Sep 2014 19:17:40 +0000 (21:17 +0200)]
demux: mp4: fix heap buffer overflow (fix #12266)

5 years agoinput: Tag attachments with the demuxer that produced them
Timothy B. Terriberry [Sat, 20 Sep 2014 17:16:33 +0000 (10:16 -0700)]
input: Tag attachments with the demuxer that produced them

This way, when metadata is updated, we only replace the attachments
produced by the demuxer whose metadata changed.

Fixes #11976

Tested by reverting the patch in #11966 (with some fix-ups to pass the
right arguments where the code had changed).

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agoFix memory leak when using subtitles with VDPAU
Devin Heitmueller [Sun, 21 Sep 2014 16:54:55 +0000 (12:54 -0400)]
Fix memory leak when using subtitles with VDPAU

When rendering closed captions with VDPAU, nothing frees the subpicture,
causing a leak that bleeds all the memory out of the system within
minutes.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agodemux: avi:fix block reading
Francois Cartegnie [Thu, 18 Sep 2014 21:25:23 +0000 (23:25 +0200)]
demux: avi:fix block reading

5 years agodemux: avi: simplify dpts code
Francois Cartegnie [Thu, 18 Sep 2014 13:17:55 +0000 (15:17 +0200)]
demux: avi: simplify dpts code

5 years agopacketizer: dirac: block sanitizing must clean reordering (fix #12051)
Francois Cartegnie [Mon, 22 Sep 2014 18:12:18 +0000 (20:12 +0200)]
packetizer: dirac: block sanitizing must clean reordering (fix #12051)

5 years agordp: drop bogus non-zero priority
Rémi Denis-Courmont [Mon, 22 Sep 2014 18:16:22 +0000 (21:16 +0300)]
rdp: drop bogus non-zero priority

This plugin does not access local files.

5 years agoNEWS: update for daala
Tristan Matthews [Mon, 22 Sep 2014 10:51:17 +0000 (11:51 +0100)]
NEWS: update for daala

5 years agoExtras/tools: ship ragel-6.8-javacodegen.patch in the tarball.
Konstantin Pavlov [Sun, 21 Sep 2014 16:38:17 +0000 (20:38 +0400)]
Extras/tools: ship ragel-6.8-javacodegen.patch in the tarball.

5 years agocontrib: add (disabled) rules.mak for daala
Tristan Matthews [Sun, 21 Sep 2014 14:25:15 +0000 (15:25 +0100)]
contrib: add (disabled) rules.mak for daala

5 years agomux: ogg: add daala support
Tristan Matthews [Fri, 19 Sep 2014 02:10:10 +0000 (22:10 -0400)]
mux: ogg: add daala support

5 years agodaala: add encoder
Tristan Matthews [Sun, 21 Sep 2014 09:35:06 +0000 (05:35 -0400)]
daala: add encoder

5 years agolivehttp: don't open new file if current file hasn't been written to
Ilkka Ollakka [Sun, 21 Sep 2014 10:35:55 +0000 (11:35 +0100)]
livehttp: don't open new file if current file hasn't been written to

5 years agolivehttp: gather blocks so we can write more at the time
Ilkka Ollakka [Sat, 20 Sep 2014 17:24:40 +0000 (18:24 +0100)]
livehttp: gather blocks so we can write more at the time

Otherwise we would loop and write() ts-packet at a time.

5 years agomacosx: update SPMediaKeyTap
Felix Paul Kühne [Sun, 21 Sep 2014 13:23:28 +0000 (14:23 +0100)]
macosx: update SPMediaKeyTap

5 years agocanvas: only add croppadd if it's actually used
Ilkka Ollakka [Sun, 21 Sep 2014 10:36:45 +0000 (11:36 +0100)]
canvas: only add croppadd if it's actually used

5 years agouse CLOCK_FREQ
Ilkka Ollakka [Fri, 21 Mar 2014 09:12:34 +0000 (11:12 +0200)]
use CLOCK_FREQ

5 years agoconfig: fix shadowing
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:14:43 +0000 (18:14 +0300)]
config: fix shadowing

5 years agopicture_fifo: avoid shadow variable
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:11:13 +0000 (18:11 +0300)]
picture_fifo: avoid shadow variable

5 years agonetwork: remove no-op continue
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:09:41 +0000 (18:09 +0300)]
network: remove no-op continue

5 years agonetwork: remove shadow variable
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:09:20 +0000 (18:09 +0300)]
network: remove shadow variable

5 years agolib: unused variable
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:07:46 +0000 (18:07 +0300)]
lib: unused variable

5 years agolib: fix shadowing and wrong variable type
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:07:02 +0000 (18:07 +0300)]
lib: fix shadowing and wrong variable type

asprintf() returns an int, not a char *.

5 years agovideo_output: avoid variable shadowing
Rémi Denis-Courmont [Thu, 18 Sep 2014 15:06:11 +0000 (18:06 +0300)]
video_output: avoid variable shadowing

5 years agoNEWS: update for Opus in TS
Tristan Matthews [Sat, 20 Sep 2014 17:12:55 +0000 (13:12 -0400)]
NEWS: update for Opus in TS

5 years agoOpus in Transport Stream
Rafaël Carré [Fri, 27 Jun 2014 09:00:31 +0000 (11:00 +0200)]
Opus in Transport Stream

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agoFix PES muxing
Rafaël Carré [Sat, 20 Sep 2014 16:53:46 +0000 (17:53 +0100)]
Fix PES muxing

5 years agofix ee961d8fa4e9f2f6909b3d77269bc0de562649d9
Carola Nitz [Sat, 20 Sep 2014 10:24:22 +0000 (11:24 +0100)]
fix ee961d8fa4e9f2f6909b3d77269bc0de562649d9

Signed-off-by: Rafaël Carré <funman@videolan.org>
5 years agoconfigure: enable init-self and logical-op warnings
Rémi Denis-Courmont [Wed, 17 Sep 2014 21:12:30 +0000 (00:12 +0300)]
configure: enable init-self and logical-op warnings

5 years agodemux: avi: use vlc_ts_0
Francois Cartegnie [Tue, 16 Sep 2014 17:23:18 +0000 (19:23 +0200)]
demux: avi: use vlc_ts_0

5 years agodemux: avi: use clock_freq
Francois Cartegnie [Tue, 16 Sep 2014 17:25:51 +0000 (19:25 +0200)]
demux: avi: use clock_freq

5 years agodemux: avi: define READ_LENGTH
Francois Cartegnie [Wed, 17 Sep 2014 18:41:37 +0000 (20:41 +0200)]
demux: avi: define READ_LENGTH

5 years agoContribs: fix compilation for Android
Jean-Baptiste Kempf [Wed, 17 Sep 2014 13:25:36 +0000 (15:25 +0200)]
Contribs: fix compilation for Android

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agozip: remove unneeded include
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:53:51 +0000 (08:53 +0200)]
zip: remove unneeded include

5 years agoPrevent potential null pointer dereference in zip access
Gabriel de Perthuis [Mon, 15 Sep 2014 10:35:46 +0000 (12:35 +0200)]
Prevent potential null pointer dereference in zip access

Close #12149

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoContribs: update gettext to 0.19.2
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:47:54 +0000 (08:47 +0200)]
Contribs: update gettext to 0.19.2

5 years agoContribs: update libbluray to 0.6.2
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:34:58 +0000 (08:34 +0200)]
Contribs: update libbluray to 0.6.2

5 years agoContribs: update gpg-error to 1.15
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:28:41 +0000 (08:28 +0200)]
Contribs: update gpg-error to 1.15

5 years agozvbi: return actual last visible row
Hannes Domani [Mon, 15 Sep 2014 14:50:36 +0000 (16:50 +0200)]
zvbi: return actual last visible row

Currently in most cases the row after the last is returned.
When the last row is visible vbi_draw_vt_page_region() could
crash, because it went over the size of p_page.text and use
invalid values (>=40) as index for p_page.color_map.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agodoc: grammar
Rémi Denis-Courmont [Tue, 16 Sep 2014 21:46:18 +0000 (00:46 +0300)]
doc: grammar

5 years agoaccess/http: Share cookies between all playlist items
Antti Ajanki [Tue, 16 Sep 2014 18:24:41 +0000 (21:24 +0300)]
access/http: Share cookies between all playlist items

Shared cookies are required, for example, by certain HDS and HLS streams
that set a cookie when the manifest is read and expect it to be sent
back on subsequent fragment requests.

The cookie jar is created during playlist initialization. HTTP requests
inherit the cookie jar from the playlist.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agocore: Move httpcookies.c to core
Antti Ajanki [Tue, 16 Sep 2014 18:24:40 +0000 (21:24 +0300)]
core: Move httpcookies.c to core

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agovdpau/chroma: skip forward to current picture if forced (fixes #11410)
Rémi Denis-Courmont [Mon, 15 Sep 2014 16:16:18 +0000 (19:16 +0300)]
vdpau/chroma: skip forward to current picture if forced (fixes #11410)

VDPAU introduces a delay of one field (one picture if not deinterlacing).
This is normally not an issue as the PTS is preserved. But it does not
work if there is only one picture not followed by another one.

5 years agoavcodec: fix missing include
Tristan Matthews [Sun, 14 Sep 2014 17:29:55 +0000 (13:29 -0400)]
avcodec: fix missing include

Needed for av_freep

5 years agogl: initialize fullscreen state correctly
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:50:24 +0000 (17:50 +0300)]
gl: initialize fullscreen state correctly

5 years agogl: fix changing window size
Rémi Denis-Courmont [Sun, 14 Sep 2014 17:08:26 +0000 (20:08 +0300)]
gl: fix changing window size

5 years agoinput: fix forward NULL
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:57:49 +0000 (17:57 +0300)]
input: fix forward NULL

5 years agodecoder: fix potential NULL dereference
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:53:03 +0000 (17:53 +0300)]
decoder: fix potential NULL dereference

5 years agoposix: use getcwd() directly, ignore $PWD and avoid ToCToU
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:47:32 +0000 (17:47 +0300)]
posix: use getcwd() directly, ignore $PWD and avoid ToCToU

5 years agolibmpeg2: eliminate dead code and factor
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:42:26 +0000 (17:42 +0300)]
libmpeg2: eliminate dead code and factor

5 years agolibmpeg2: reduce variable scope
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:30:54 +0000 (17:30 +0300)]
libmpeg2: reduce variable scope

5 years agovout_window: inline vout_window_Control()
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:41:43 +0000 (17:41 +0300)]
vout_window: inline vout_window_Control()

5 years agovout_window: add vout_window_vaControl() helper
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:41:19 +0000 (17:41 +0300)]
vout_window: add vout_window_vaControl() helper

5 years agogl: remove redundant pointer
Rémi Denis-Courmont [Sat, 13 Sep 2014 15:23:26 +0000 (18:23 +0300)]
gl: remove redundant pointer

5 years agoxcb/glx: remove redundant pointer
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:18:46 +0000 (17:18 +0300)]
xcb/glx: remove redundant pointer

5 years agoegl: reorder to avoid forward declarations
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:45:12 +0000 (17:45 +0300)]
egl: reorder to avoid forward declarations

5 years agoglx: reorder to avoid forward declarations
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:04:48 +0000 (17:04 +0300)]
glx: reorder to avoid forward declarations

5 years agovdpau/avcodec: cleanup
Rémi Denis-Courmont [Sat, 13 Sep 2014 11:07:37 +0000 (14:07 +0300)]
vdpau/avcodec: cleanup

5 years agovda: cleanup
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:57:33 +0000 (13:57 +0300)]
vda: cleanup

5 years agoavcodec: close acceleration back-end after the context
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:05:35 +0000 (13:05 +0300)]
avcodec: close acceleration back-end after the context

5 years agovda: remove write-only parameter
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:46:32 +0000 (13:46 +0300)]
vda: remove write-only parameter

5 years agoavcodec: pass AVCodecContext to VA setup callback
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:43:07 +0000 (13:43 +0300)]
avcodec: pass AVCodecContext to VA setup callback

5 years agoavcodec: pass AVCodecContext to VA destroy callback
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:40:40 +0000 (13:40 +0300)]
avcodec: pass AVCodecContext to VA destroy callback

5 years agoavcodec: free extradata after closing the context
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:59:48 +0000 (12:59 +0300)]
avcodec: free extradata after closing the context

5 years agoavcodec: move debug message to correct place
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:59:37 +0000 (12:59 +0300)]
avcodec: move debug message to correct place

5 years agoavcodec/encoder: fix alloc/free of context
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:43:52 +0000 (12:43 +0300)]
avcodec/encoder: fix alloc/free of context

5 years agoavcodec: use avcodec_free_context() where applicable
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:48:17 +0000 (12:48 +0300)]
avcodec: use avcodec_free_context() where applicable

Fix leak on error, fix mismatched free function on success.

5 years agovaapi: inline init and deinit functions
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:24:40 +0000 (12:24 +0300)]
vaapi: inline init and deinit functions

5 years agovaapi: reorder to avoid forward declarations, no functional changes
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:20:57 +0000 (12:20 +0300)]
vaapi: reorder to avoid forward declarations, no functional changes

5 years agowl/shm: print supported buffer formats to log
Rémi Denis-Courmont [Fri, 12 Sep 2014 19:49:38 +0000 (22:49 +0300)]
wl/shm: print supported buffer formats to log

5 years agov4l2: detect and use the Sundtek driver
Rémi Denis-Courmont [Fri, 12 Sep 2014 15:55:47 +0000 (18:55 +0300)]
v4l2: detect and use the Sundtek driver

5 years agov4l2: simplify dynamic loading of libv4l2
Rémi Denis-Courmont [Thu, 11 Sep 2014 21:14:15 +0000 (00:14 +0300)]
v4l2: simplify dynamic loading of libv4l2

5 years agoandroid: request rotation if video is oriented
Felix Abecassis [Fri, 12 Sep 2014 17:43:21 +0000 (19:43 +0200)]
android: request rotation if video is oriented

5 years agoyuv_rgb: bail out if input/output orientation does not match
Felix Abecassis [Fri, 12 Sep 2014 17:40:54 +0000 (19:40 +0200)]
yuv_rgb: bail out if input/output orientation does not match

5 years agovout: fix a deadlock with the picture pool lock
Felix Abecassis [Tue, 9 Sep 2014 17:29:06 +0000 (19:29 +0200)]
vout: fix a deadlock with the picture pool lock

A deadlock could occur in an high load situation where the vout and
the decoder are taking excessive amounts of time.

The vout thread repeatedly call ThreadDisplayPicture in its main loop
until it returns an error, while keeping the picture pool locked. If
no picture was recently received, the vout will redisplay the current
picture (a "refresh") by calling ThreadDisplayRenderPicture with
is_forced=true. If this refresh is excessively long, the vout thread
will be stuck in a refresh loop. The decoder cannot make any progress
since the picture pool lock is hold and the vout won't be polling for
control commands, yielding a total deadlock of the program.

This situation can be reproduced artificially by sleeping in the
decoder and decreasing variable VOUT_REDISPLAY_DELAY.

A simple solution to this issue is to exit the ThreadDisplayPicture
loop after refreshing. Since a refresh typically occurs when no new
pictures are received from the decoder, this should not decrease
performance.

5 years agoskins2: os2: save and restore FPU cw
KO Myung-Hun [Wed, 10 Sep 2014 08:00:49 +0000 (17:00 +0900)]
skins2: os2: save and restore FPU cw

WinCreateMsgQueue() changes FPU cw but does not restore it. This causes
SIGFPE later.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoUpdate VLSub
Jean-Baptiste Kempf [Fri, 12 Sep 2014 07:07:17 +0000 (09:07 +0200)]
Update VLSub

5 years agoavcodec: remove no-op
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:37:08 +0000 (23:37 +0300)]
avcodec: remove no-op

This is already taken care of by avcodec_open2().

5 years agoavcodec: remove redundant codec_id parameter
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:31:19 +0000 (23:31 +0300)]
avcodec: remove redundant codec_id parameter

5 years agoavcodec: remove redundant codec name parameter
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:23:38 +0000 (23:23 +0300)]
avcodec: remove redundant codec name parameter

5 years agoavcodec: constify decoder_sys_t.p_codec
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:16:50 +0000 (23:16 +0300)]
avcodec: constify decoder_sys_t.p_codec

5 years agoavcodec: remove indirection
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:16:39 +0000 (23:16 +0300)]
avcodec: remove indirection

5 years agoavcodec: do not overwrite libavcodec internal AVCodec data
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:15:40 +0000 (23:15 +0300)]
avcodec: do not overwrite libavcodec internal AVCodec data

5 years agoavcodec: remove redundant decoder_sys_t.i_cat
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:03:31 +0000 (23:03 +0300)]
avcodec: remove redundant decoder_sys_t.i_cat

5 years agoavcodec: remove write-only decoder_sys_t.i_skip_idct
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:42:32 +0000 (22:42 +0300)]
avcodec: remove write-only decoder_sys_t.i_skip_idct

5 years agoavcodec: remove deprecated motion vector visualization option
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:18:54 +0000 (22:18 +0300)]
avcodec: remove deprecated motion vector visualization option