Commit Graph

79098 Commits

Author SHA1 Message Date
Jean-Baptiste Kempf 6f0d0ab126 News for 3.0.20 2023-10-30 08:41:48 +01:00
Steve Lhomme d3832e1cdc direct3d11: only send the HDR metadata when they change
Newer Windows issue this warning if we send metadata with each picture:

DXGI WARNING: IDXGISwapChain4::SetHDRMetaData: Redundant invocation on unchanged
metadata could result in presentation performance inefficiency. [ MISCELLANEOUS WARNING #295: ]

Similar code as done in 269540817f for VLC 4.0.
2023-10-30 06:43:47 +00:00
Steve Lhomme e5bba91139 direct3d11: remove padding in the pool picture
On 3.0 the pool video format doesn't have to match the decoder actual
padding. The quad handling to place the picture will take care of this
with the actual texture size.

We still need to fix the semiplanar dimensions although it's unlikely
the quad will use anything else than an RGB output.

Fixes green line seen in fullscreen.
2023-10-27 14:01:46 +00:00
Maxim Biro 132e617a31 vout: pass non-left-mouse-button double-clicks on Windows too
Follow-up to ed22580d6f, which did this on
Linux.
2023-10-27 06:42:20 +00:00
Thomas Guillem 27840cb5b2 mmsh: check user size bounds
(cherry picked from commit f7f346e686)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2023-10-26 17:27:03 +02:00
Steve Lhomme 585aee4fad avcodec: fix crash when AV1 hardware decoder fails
If InitVideoDecCommon() fails, it's already cleaning the decoder,
release the context and freeing p_sys.

We must not do anything and just return the error.


(cherry picked from commit fecebe1588)
2023-10-21 17:08:40 +00:00
Pierre Lamot 2b24e96a3a qt: fix fullscreen controlbar disappearing on interaction on windows
It looks like windows doesn't consider which window is active the same way X11 does

fix: #28399
2023-10-21 15:04:25 +00:00
KO Myung-Hun abf5e61721 vlc_fixups: include sys/socket.h on OS/2 LIBCn
LIBCn is a fork of kLIBC, and it has socklen_t in sys/socket.h.

(cherry picked from commit 4baa00c9d7)
2023-10-21 10:47:33 +00:00
Steve Lhomme 24ac561248 cdrom: don't eat the next line after we read the cue file mode
(cherry picked from commit d18fd89b00)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-10-19 11:12:10 +00:00
Maxim Biro ed22580d6f vout: pass non-left-mouse-button double-clicks
This fixes #28377 -- the issue when double-clicking on
MOUSE_BUTTON_CENTER (mouse wheel) would result in plugins receiving
mouse events only for the first click, as VLC was filtering out all
non-left-mouse-button double-clicks.

The non-left-mouse-button double-click events, instead of being entirely
filtered out, are now being passed as regular mouse button presses
without any indication that they are double-clicks. While it would be
more proper to pass them as double-clicks with the corresponding mouse
button being pressed, that might break some 3rd party plugins that rely
on (vlc_mouse_t.b_double_click == true) to mean that the left mouse
button was double-clicked, without checking if the left mouse button was
actually pressed. Still, even with b_double_click not being set on
non-left-mouse-button double-clicks, passing such double-clicks as
regular press+release events does fix the issue of VLC "eating up" the
second click of a MOUSE_BUTTON_CENTER, so this is a good change.
2023-10-18 05:31:57 +00:00
Steve Lhomme e031a5cc89 direct3d11: settle legacy_shader before it's being used
It's used in Direct3D11CreateFormatResources(). We can update it every time
Direct3D11Open() is called.
2023-10-14 13:32:00 +00:00
Steve Lhomme 380dee8053 d3d11_fmt: check all the Display driver items
There might be holes in the index list but we need to check each of them
to find our driver.
2023-10-14 13:32:00 +00:00
Tristan Matthews 05dd1fe652 contrib: dav1d: update to 1.3.0
> 1.3.0 is a medium release reducing memory footprint, increasing again
> the speed on x86 and ARM and extending the API functions.

https://code.videolan.org/videolan/dav1d/-/tags/1.3.0
(cherry picked from commit cf283cb757)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-10-10 07:57:44 +02:00
Jean-Baptiste Kempf 32b50de2a2 Update NEWS 2023-09-30 11:45:12 +02:00
Jean-Baptiste Kempf 235747f2c5 Contribs: update libvpx to 1.13.1
CVE-2023-5217
https://crbug.com/1486441 (CVE-2023-5217)

(cherry picked from commit ab520205ae)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-09-30 11:37:40 +02:00
Steve Lhomme 236b3184d7 nsis: always use the regsvr32.exe from the system
We should not use whatever is in the PATH. Especially as the current directory
is set the a temporary directory during uninstallation.

(cherry picked from commit d13608f886)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-09-27 15:13:37 +02:00
Thomas Guillem 56529098b0 lib: media_list_player: fix leaks
Signed-off-by: Felix Paul Kühne <felix@feepk.net>
2023-09-07 13:34:32 +00:00
Thomas Guillem 4e4e389c01 lib: media_list_player: check set_current_playing_item() return
This will allow to fix a leak by only checking the return code instead
of fetching the media (and forgetting to release it...)

Signed-off-by: Felix Paul Kühne <felix@feepk.net>
2023-09-07 13:34:32 +00:00
Thomas Guillem dc2242c0ea lib: media_list: fix leak
Signed-off-by: Felix Paul Kühne <felix@feepk.net>
2023-09-07 13:34:32 +00:00
Felix Paul Kühne 95f79c82d6 lib:media_list_player: add missing nullability checks 2023-09-07 13:34:32 +00:00
Felix Paul Kühne f1ed769f55 NEWS: mention new translations 2023-09-05 23:18:19 +02:00
VideoLAN e96e6c6d78 po: add initial translation to Swahili 2023-09-05 23:18:19 +02:00
VideoLAN 943d3c3b25 po: add initial translation to Samoan 2023-09-05 23:18:18 +02:00
VideoLAN 54401b01c3 po: add initial translation to Odia 2023-09-05 23:18:18 +02:00
VideoLAN 5953ed5119 po: add initial translation to Burmese 2023-09-05 23:18:18 +02:00
VideoLAN 82f8de5c76 po: add initial translation to Macedonian 2023-09-05 23:18:18 +02:00
VideoLAN b75e7040d8 po: add initial translation to Lao 2023-09-05 23:18:18 +02:00
VideoLAN 9249ec99eb po: add initial translation to Interlingue 2023-09-05 23:18:18 +02:00
VideoLAN 78ed9cd267 po: add initial translation to Esperanto 2023-09-05 23:18:18 +02:00
VideoLAN 8dd5dd1520 Update translations for release 2023-09-05 23:18:13 +02:00
Jean-Baptiste Kempf 4733d1cced News for 3.0.19 2023-08-15 11:12:19 +02:00
Francois Cartegnie 90d44efbc5 demux: mp4: fix duration probing on missing info
(cherry picked from commit 2ce189cc17)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-08-12 21:57:59 +02:00
Steve Lhomme 8b622fc01f d3d_shaders: fix placement with 270° rotation
We should not subtract width and height values.

Fixes #27976

(cherry picked from commit 4cd819e238) (edited)

edited:
- SetupQuadFlat is in d3d11_quad on 3.0
2023-08-10 07:22:40 +02:00
Jean-Baptiste Kempf c420116756 Update NEWS for 3.0.19 2023-08-05 12:18:49 +02:00
Francois Cartegnie 9c46fed0cc codec: libass: patch info for compatibility
refs #27771

(cherry picked from commit 11d7708b1a) (edited)
edited:
- fmt_in is not a pointer in 3.0

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-08-05 06:18:26 +00:00
Francois Cartegnie 4d093ebb85 contribs: update libass to 0.17.1
refs #27771

(cherry picked from commit 00e4996d1e)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-08-04 20:34:52 +00:00
Johannes Kauffmann b2b0683da2 contribs: use $(GITHUB) consistently
(cherry picked from commit 2dcd7516a0)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-08-04 20:34:52 +00:00
Steve Lhomme 5241032ac7 contrib: ass: disable tests
And fix fribidi dependencies

(cherry picked from commit 7ebe66444b)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-08-04 20:34:52 +00:00
Steve Lhomme dfdbbf18da contrib: ass: remove forced -O3
This shouldn't be enforced. We already use -O2 on release builds.

Introduced in 77f2dac1ab

(cherry picked from commit 4dce5d8ed7)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2023-08-04 20:34:52 +00:00
Alexandre Janniaux 5d4ade5650 caopengllayer: restore vout_display_SendEventDisplaySize
VLC 4.0 doesn't need that but 3.0 still has no windowing module, leading
to display size not being reported to the subtitle text renderer, and
leading to blurry subtitles and OSD.

Because the size is coming from the display, it means that the first
time the subtitle is displayed, it will always be blurry depending on
the real display size and original media size.

Regression from 8ff5695217.

Fixes #27793
2023-08-03 20:03:09 +00:00
Steve Lhomme 6cc298d7d4 packetizer: av1: fix bogus detection of monochrome
Match the algorithm from the specs of [1]

[1] https://aomediacodec.github.io/av1-spec/#color-config-syntax

(cherry picked from commit 4bdb9c1b36)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-08-02 14:55:35 +02:00
Marvin Scholz a10dfa55be macosx: do not assign intValue to prevent formatting issues
This is a temporary solution for #22576

It results in numbers not having thousands separator anymore, which
is better than the user being unable to save the desired value.
2023-08-01 13:46:33 +02:00
Steve Lhomme dfdc90c30a avcodec: va: set the software source for special AV1 decoder
So far we did not need it. We should always have the format matching
the one we detected by the decoder. If we don't that means the packetizer
failed to reset the decoder.

(cherry picked from commit c901da645b)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-07-13 11:11:11 +02:00
Steve Lhomme 632652bc15 avcodec: va: move the AV1 profile extraction in a function
(cherry picked from commit 5892a9106a) (edited)

edited:
- in 4.0 p_dec->fmt_in is a (const) pointer
- there's no VLC_ENOTSUP in 3.0
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-07-13 11:10:53 +02:00
Steve Lhomme ed9fc431df avcodec: va: pass the software AVPixFmtDescriptor for AV1 special decoder
This is what is passed in the normal decoding case.

This fixes an issue where 10-bit sources don't play properly as we can't
tell from the Profile 0 is we're decoding in 8-bit or 10-bit.

(cherry picked from commit 1aa624e28d)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2023-07-13 11:10:43 +02:00
Thomas Guillem 1f686d3450 ci: android: use the last build script
And use last vlc-debian-android image with NDK21e.
2023-07-10 10:03:59 +02:00
Francois Cartegnie b7faa116de demux: adaptive: fix es repick on format restart with variants
since 05d9097987
2023-07-06 14:34:15 +00:00
Thomas Guillem ff0573857d smb2: fix anonymous login with last Windows update
Fixes #28187

(cherry picked from commit 167ab59642)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2023-07-06 11:51:19 +00:00
Thomas Guillem 049a6f254d smb2: use correct error code
(cherry picked from commit ea7aeedcfc)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2023-07-06 11:51:19 +00:00
Steve Lhomme ba02ef6056 dxva: use the actual surface size to test decoder support
The container may lie but the size that libavcodec requests is the one it
will use. We need this size to probe the decoder in D3D11. There doesn't
seem to be a way to check the size support in dxva2.

Similar to e4cc2f846b but without setting
an output video_format_t.
2023-07-03 09:05:31 +02:00