Commit Graph

78755 Commits

Author SHA1 Message Date
David Fuhrmann 675232e593 Update NEWS 2022-08-24 19:52:36 +02:00
Romain Vimont d7d0bbf8be decoder: update i_bitspersample
The field i_bytes_per_frame was updated, but not i_bitspersample,
causing an inconsistency leading to a buffer overflow.

Fixes #26930
2022-08-24 19:51:40 +02:00
Tristan Matthews 04b535561d contrib: vpx: update to 1.12.0
Notable changes:
 - This release adds optimizations for Loongarch, adds support for vp8 in the
   real-time rate control library, upgrades GoogleTest to v1.11.0, updates
   libwebm to libwebm-1.0.0.28-20-g206d268, and includes numerous bug fixes.

Bug fixes:
 - Fix to a crash related to {vp8/vp9}_set_roi_map.
 - Fix to compiling failure with -Wformat-nonliteral.
 - Fix to integer overflow with vp9 with high resolution content.
 - Fix to AddNoiseTest failure with ARMv7.
 - Fix to libvpx Null-dereference READ in vp8.

(cherry picked from commit 1cc04dc41b)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Thomas Guillem 75b8aa7a05 contrib: vpx: enable back i386/x86_64 asm on Android
Since relocation issues are now fixed.

(cherry picked from commit 4386bd5f32) (rebased)
rebased:
* no wasm on 3.0

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Thomas Guillem fdb1909e6e contrib: vpx: fix build with NDK25
Disable neon_asm since it rely on arm-linux-androideabi-as (removed in
NDK25).

Temporary commit.

(cherry picked from commit 7be5d4d844)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Felix Paul Kühne 1ba3efcd5a contrib/vpx: fix compilation for aarch64 simulators on iOS/tvOS
(cherry picked from commit c32d801a88) (rebased)
rebased:
* no wasm support in 3.0

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Tristan Matthews a5bdd659b5 contrib: update libvpx to 1.11.0
(cherry picked from commit 668ef74e59)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Tristan Matthews bf49fd9a81 contrib: vpx: update to 1.10.0
(cherry picked from commit 3d128f5b7e)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-24 16:41:18 +00:00
Tristan Matthews abf2379a6e contrib: update libvpx to 1.9.0
(cherry picked from commit 5a88236177) (edited)
edited:
* header of the 3.0 pacth was different
2022-08-24 16:41:18 +00:00
Johannes Kauffmann 58d30c8b64 demux: dash: include cstdint, needed for uint64_t
Fixes #27077.

(cherry picked from commit 6fca76ebd7)
2022-08-24 16:20:11 +00:00
Johannes Kauffmann 7a1446e385 OpenMAX IL: add more missing extern qualifiers
Amends 8e50cc985e.

This should fix #24617, which is still an issue on 3.0.x (cf. #27256).
2022-08-24 15:59:10 +00:00
Steve Lhomme ad8bbb0d4b contrib: ffmpeg: fix a rare crash on some odd files with DVXA
There is a cleaner fix proposed but it may have wider impacts and needs to be
checked on all platforms:
https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg137976.html

This one should be safe for 3.0.18
2022-08-24 05:20:48 +00:00
Steve Lhomme f5b18999ba contrib: dvdread: fix bitfield size in packed structures
Submitted here https://code.videolan.org/videolan/libdvdread/-/merge_requests/41

(cherry picked from commit a1e6e4dab2)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2022-08-22 10:04:05 +02:00
Martin Storsjö d2cad92d01 spudec: Fix function pointer incompatibilities
This is an error in Clang 16.
2022-08-19 15:47:46 +03:00
Martin Storsjö 9e4d83f382 d3d11: Avoid -Wint-conversion errors
Clang 15 made "incompatible pointer to integer conversion" an error
instead of a plain warning. This fixes errors like these:

d3d11va.c:426:29: error: incompatible integer to pointer conversion assigning to 'ID3D11DeviceContext *' (aka 'struct ID3D11DeviceContext *') from 'int64_t' (aka 'long long') [-Wint-conversion]
    sys->d3d_dev.d3dcontext = var_InheritInteger(va, "winrt-d3dcontext");
2022-08-19 15:47:46 +03:00
Steve Lhomme 71707c2ffe ntservice: fix warning on losing const attribute
(cherry picked from commit 6add3c0552)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:47:46 +03:00
Rémi Denis-Courmont 957906afcc ts: fix invalid casts
(cherry picked from commit 779c87eaff)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:47:46 +03:00
Rémi Denis-Courmont b184d1fd45 yadif: fix invalid function pointer conversion
(cherry picked from commit 87724691c8)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:47:46 +03:00
Steve Lhomme 57df8aeee6 winvlc: fix warnings
(cherry picked from commit 260ee399c5)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:47:46 +03:00
Martin Storsjö ab3617c26b contrib: qt: Backport patches to Qt 5.6 to fix compilation with latest Clang
Clang 16 errors out on ill-formed constant expressions when setting an
enum value to an out of range value for a non-fixed type enum.

These are all fixes that have been made in newer versions of Qt, but
which are backported to the version carried in vlc contribs.
2022-08-19 15:47:46 +03:00
Steve Lhomme 1d4bcca17f contrib: crystalhd: fix forward declaration of a struct
Clang doesn't like it and warns about setting the callback using this signature.

(cherry picked from commit aee808c442)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:47:46 +03:00
Martin Storsjö f22fc52d2e contrib: gnutls: Backport a patch to avoid -Wint-conversion errors
Clang 15 made "incompatible pointer to integer conversion" an error
instead of a plain warning. This fixes errors like these:

system/keys-win.c:257:13: error: incompatible pointer to integer conversion initializing 'HCRYPTHASH' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
        HCRYPTHASH hHash = NULL;
                   ^       ~~~~

This backports
88d79b964d.

(cherry picked from commit ef1d4f3d22)
Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-19 15:18:45 +03:00
Hugo Beauzée-Luyssen 5c8512dfe1 contrib: upnp: Bump to 1.14.13
(cherry picked from commit bf2819fd0b)
2022-08-17 15:50:51 +02:00
Hugo Beauzée-Luyssen f6bd67bbe7 contrib: upnp: Remove unneeded patch
If libupnp is built without --enable-debug, debug is entirely
deactivated.
When debug is enabled, users are required to call UpnpInitLog to enable
logging, otherwise logs are dropped

(cherry picked from commit be9bc069b0)
2022-08-17 15:50:07 +02:00
Francois Cartegnie 07cd30a1ca packetizer: flac: do not check min frame size for fixed block
cannot pass on truncated end

(cherry picked from commit 1db4d294ca)
2022-08-11 18:04:21 +02:00
Francois Cartegnie affe9ad5ac packetizer: flac: move frame check outside reader
(cherry picked from commit 1c03970b91)
2022-08-11 18:04:20 +02:00
Francois Cartegnie afa25a995b packetizer: flac: remove useless frame_size
(cherry picked from commit 54ffcdec20)
2022-08-11 18:01:22 +02:00
Francois Cartegnie 2b707aebc6 packetizer: flac: fix fixed blocksize streams last pts
(cherry picked from commit 1cd8422afd)
2022-08-11 17:59:59 +02:00
Francois Cartegnie 89fa35ef81 packetizer: flac: add comments
(cherry picked from commit 6aeaeb610d)
2022-08-11 17:58:18 +02:00
Francois Cartegnie 7628565d29 packetizer: flac: fix potential endless loop on drain
(cherry picked from commit d231265080)
2022-08-11 17:58:10 +02:00
Francois Cartegnie a57c3a843d packetizer: flac: don't send invalid frame on drain
(cherry picked from commit 599757d9e4)
2022-08-11 17:48:54 +02:00
Alex Chernyakov 5d8eed501f dynamicoverlay: Fix memory leak when updating pictures
In exec_DataSharedMem() memory is allocated via the call to picture_New().
This memory is correctly freed via picture_Release() if an error occurs,
but if no error occurs and the function proceeds normally, the memory is
never freed. When the DataSharedMem routine is called repeatedly (e.g.,
to update a picture continuously), this leak accumulates very quickly.

(cherry picked from commit 41c1d1a9ee)
2022-08-11 05:21:06 +00:00
Steve Lhomme 7a69931f84 direct3d11: add missing allocation check 2022-08-08 06:28:21 +02:00
Steve Lhomme 0e4c20fc94 doc: libvlc: add a d3d11 external swapchain sample app
In UWP apps (and now libvlc) it was possible to set the swapchain and D3D
context to use for the rendering, via the command-line.

This sample app uses this functionality in a basic win32 app.
2022-08-05 07:30:44 +02:00
Steve Lhomme 408d6e7ef5 direct3d11: reindent
No functional changes.
2022-08-05 07:30:43 +02:00
Steve Lhomme 28e9869461 direct3d11: allow external rendering even in non UWP builds
It's still the only supported mode in UWP 3.0 builds.
2022-08-05 07:30:34 +02:00
Steve Lhomme f8969a6677 direct3d11: move up fake UWP GetRect
No functional changes.
2022-08-05 07:24:25 +02:00
Steve Lhomme 412bdb9938 d3d11: enable the WinRT context/swapchain hack to work in non-UWP builds
Since there is not GPU callbacks in 3.0 this allows using a custom D3D11 render
target with regular libvlc as we can do in UWP libvlc.

Co-authored-by: Martin Finkel <me@martinfinkel.com>
2022-08-05 07:23:28 +02:00
Steve Lhomme 5270d38718 win32: common: avoid using SetRectEmpty
We can do the same in standard C.
2022-08-04 16:34:05 +02:00
Jean-Baptiste Kempf a65b22fd0b On the road to 3.0.18-RC 2022-08-04 12:47:22 +00:00
Marvin Scholz c8cd3f95e3 subsdelay: handle NULL segment text
In some rare cases psz_text can be NULL, which would end up being
passed to strlen, causing a crash.

Fix CD 524d077a-d613-4f2f-85b1-2a2af0747888

(cherry picked from commit 2322d55db3)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
2022-08-04 11:19:12 +00:00
Jean-Baptiste Kempf 941e437301 Contrib: update libbluray to 1.3.2
(cherry picked from commit d0b87b53ac)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2022-08-03 12:57:03 +02:00
Francois Cartegnie cdcf450c8e demux: dash: have startnumber default when parsing timelines
refs #27164

(cherry picked from commit 9ba23e7d58)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2022-08-01 08:06:20 +02:00
Thomas Guillem 7c897c4dd8 avcodec: vaapi: use profile from AVCodecContext
Like it's done in other part of the GetVaProfile() function.

For the current issue, the extra data is set midstream by lavc (and not
by our mkv demux).

The 4.0 branch does not need this patch since the VAAPI initialisation
is done by lavc.

Thanks Steve for the hint.

Co-authored-by: Steve Lhomme <robux4@ycbcr.xyz>

Fixes #27163
2022-07-29 14:01:42 +00:00
Marvin Scholz d4dd33720a access: file: properly report local files on Darwin
While Darwin implements fstatvfs, the statvfs structures f_flag
field is only defined to contain two flags, ST_RDONLY and ST_NOSUID.
So the check for MNT_LOCAL would always be false, reporting all files
as non-local.

To mitigate that, on Darwin we can just use fstatfs and check
statfs.f_flags for MNT_LOCAL.

(cherry picked from commit 132ef66248)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
2022-07-27 00:14:13 +02:00
Francois Cartegnie acae96e091 demux: oggseek: remove bos optimization
prevents blind seek to start of stream as granule is never read

(cherry picked from commit cd79514d7b)
2022-07-26 08:08:57 +00:00
Francois Cartegnie 382cc2ee4b demux: ogg: rename ambiguous member
(cherry picked from commit 125a46cc6c)
2022-07-26 08:08:57 +00:00
Francois Cartegnie 2e71199f67 demux: ogg: store length as microseconds
(cherry picked from commit ac81e531ac)
2022-07-26 08:08:57 +00:00
Francois Cartegnie ebfe150e17 demux: ogg: limit indexes
(cherry picked from commit fc94fb4e0b)
(cherry picked from commit 6a995af679)
2022-07-26 08:08:57 +00:00
Francois Cartegnie 031f1f498f demux: ogg: simplify index stuff
(cherry picked from commit 9a42c5312a)
2022-07-26 08:08:57 +00:00