vlc.git
11 months agometa_engine: taglib: restrict unlimited reads on streams
François Cartegnie [Mon, 10 Aug 2020 12:55:02 +0000 (14:55 +0200)]
meta_engine: taglib: restrict unlimited reads on streams

taglib reads unlimited if no IDv3 or MPEG header is found at the
beginning.

(cherry picked from commit 8ec8b0d2add84b6d6b0c043e1c4f241998915ecd) (rebased)
rebased:
- only used with Taglib 1.11+ which is not always the case with 3.0

Gbp-Pq: Name 0041-meta_engine-taglib-restrict-unlimited-reads-on-strea.patch

11 months agometa_engine: taglib: add sequential read limit on VlcIostream
François Cartegnie [Mon, 10 Aug 2020 12:52:11 +0000 (14:52 +0200)]
meta_engine: taglib: add sequential read limit on VlcIostream

(cherry picked from commit d375284a144e6b18896deda3a86b9560bc04f3d8) (rebased)
rebased:
- 3.0 already has 1.11 ifdef

Gbp-Pq: Name 0040-meta_engine-taglib-add-sequential-read-limit-on-VlcI.patch

11 months agometa_engine: taglib: reject read on failed seek
François Cartegnie [Mon, 10 Aug 2020 12:38:00 +0000 (14:38 +0200)]
meta_engine: taglib: reject read on failed seek

(cherry picked from commit 837b583e4e4e531ff8b11f13300c7cbc565beb9f) (rebased)
rebased:
- 3.0 already has 1.11 ifdef

Gbp-Pq: Name 0039-meta_engine-taglib-reject-read-on-failed-seek.patch

11 months agometa_engine: taglib: increment VlcIostream readpos
François Cartegnie [Mon, 10 Aug 2020 12:32:32 +0000 (14:32 +0200)]
meta_engine: taglib: increment VlcIostream readpos

(cherry picked from commit 0cbcf504b43a02ddb7ecc1c65c0c1e82f39b4f1c)

Gbp-Pq: Name 0038-meta_engine-taglib-increment-VlcIostream-readpos.patch

11 months agotaglib: fix -Wdeprecated-copy warnings
Alexandre Janniaux [Fri, 7 Feb 2020 22:50:00 +0000 (23:50 +0100)]
taglib: fix -Wdeprecated-copy warnings

Warnings were happening because we were using copy operator= as the
assigned object was already initialized. This patch use the copy
constructor or move constructor instead if available.

Those warnings were:

../../modules/meta_engine/taglib.cpp: In function ‘void ReadMetaFromXiph(TagLib::Ogg::XiphComment*, demux_meta_t*, vlc_meta_t*)’:
../../modules/meta_engine/taglib.cpp:672:39: warning: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated [-Wdeprecated-copy]
  672 |     list = tag->fieldListMap()[keyName];                                       \
      |                                       ^
../../modules/meta_engine/taglib.cpp:681:5: note: in expansion of macro ‘SET’
  681 |     SET( "COPYRIGHT", Copyright );
      |     ^~~
In file included from /usr/include/taglib/fileref.h:30,
                 from ../../modules/meta_engine/taglib.cpp:58:
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
   59 |     StringList(const StringList &l);
      |     ^~~~~~~~~~

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit be4f907a0e834c10277b8217520f745238da1c13)

Gbp-Pq: Name 0037-taglib-fix-Wdeprecated-copy-warnings.patch

11 months agotaglib: Enable prefetch/cache on the IOStream
Hugo Beauzée-Luyssen [Tue, 8 Oct 2019 15:21:20 +0000 (17:21 +0200)]
taglib: Enable prefetch/cache on the IOStream

We can't do it through vlc_stream_NewURL as it will include the
skiptags filter

(cherry picked from commit 976cd219465a72daa02d22e60c9ac4c704c0b18b)

Gbp-Pq: Name 0036-taglib-Enable-prefetch-cache-on-the-IOStream.patch

11 months agotaglib: Always use IOStream to read the media
Steve Lhomme [Mon, 16 Sep 2024 11:21:17 +0000 (13:21 +0200)]
taglib: Always use IOStream to read the media

(cherry picked from commit 4bc7607f31f80264b5e61fbd187f2f8d2f3bb604) (edited)
edited:
- keep the support for taglib older than 1.11 which doesn't have the
  proper FileRef constructor to use it
- the aacresolver is only called for Taglib 1.11+ on 3.0
- 4.0 doesn't make a difference for UWP or regular Windows

Gbp-Pq: Name 0035-taglib-Always-use-IOStream-to-read-the-media.patch

11 months agotaglib: IOStream: Return the url as fileName
Hugo Beauzée-Luyssen [Mon, 18 Mar 2019 14:09:39 +0000 (15:09 +0100)]
taglib: IOStream: Return the url as fileName

Since the only part that matters to taglib is the filename, and more
specifically the extension part.

(cherry picked from commit 026a76066efa78f1934ab2c177669a2e6a519cff)

Gbp-Pq: Name 0034-taglib-IOStream-Return-the-url-as-fileName.patch

11 months agomodules: taglib: simplify reading embedded art
François Cartegnie [Mon, 5 Aug 2019 13:24:45 +0000 (15:24 +0200)]
modules: taglib: simplify reading embedded art

(cherry picked from commit 3533f90eb44398abe6cff1b14ece757654449acf) (rebased)
rebased:
294cbdbaee0209bc88ca7bec9164da8da4ac44ef has been merged above

Gbp-Pq: Name 0033-modules-taglib-simplify-reading-embedded-art.patch

11 months agotaglib: .m4v are already registered as MP4 files
Hugo Beauzée-Luyssen [Thu, 7 Feb 2019 16:58:11 +0000 (17:58 +0100)]
taglib: .m4v are already registered as MP4 files

https://github.com/taglib/taglib/pull/662
(cherry picked from commit 84962e474bfefa242527f7c3ddffe6ed4f697fbe) (rebased)

Gbp-Pq: Name 0032-taglib-.m4v-are-already-registered-as-MP4-files.patch

11 months agoaom: make BGR matching stricter
Tristan Matthews [Mon, 9 Sep 2024 21:27:24 +0000 (17:27 -0400)]
aom: make BGR matching stricter

This is equivalent to the fix in ece317a245e8c32a5efc11d5e82dcd8a28a2f10b
as the aom decoder had the same issue reported in #28776.

(cherry picked from commit 0001e85a098ee4e6e2526eaec8a76899c2b23b90)

Gbp-Pq: Name 0031-aom-make-BGR-matching-stricter.patch

11 months agopacketizer: dts: check for frame_size for the first sync
Thomas Guillem [Wed, 11 Sep 2024 06:16:36 +0000 (08:16 +0200)]
packetizer: dts: check for frame_size for the first sync

Only substreams are allowed to have a frame_size of 0.

(cherry picked from commit 16b31aa57e3919dbe661c213868dee4b8bc1e3bd)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0030-packetizer-dts-check-for-frame_size-for-the-first-sy.patch

11 months agodts_header: initialize SUBSTREAM_LBR size to 0
Thomas Guillem [Wed, 11 Sep 2024 06:15:52 +0000 (08:15 +0200)]
dts_header: initialize SUBSTREAM_LBR size to 0

It's a substream and can't work alone, so a size of 0 is legitimate.

Fixes #28773 (Use of uninitialised value)

(cherry picked from commit b23f09b258dc63c2221af502ec856630f68817e5)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0029-dts_header-initialize-SUBSTREAM_LBR-size-to-0.patch

11 months agodav1d: add dav1d-all-layers flag
Tristan Matthews [Thu, 5 Sep 2024 14:21:11 +0000 (10:21 -0400)]
dav1d: add dav1d-all-layers flag

This will output all spatial layers if requested, defaults to false (the built-in dav1d
behavior would defaults this to true).

Fix suggested-by Maryla Ustarroz

Fixes #28776

(cherry picked from commit 6ffede3f445586e5d368de936666cabb84f6a16f)

Gbp-Pq: Name 0028-dav1d-add-dav1d-all-layers-flag.patch

11 months agodav1d: treat RGB formats separately
Tristan Matthews [Sat, 31 Aug 2024 16:58:27 +0000 (12:58 -0400)]
dav1d: treat RGB formats separately

This avoids incorrectly matching as GBR.
Fixes #28763 which was missing checks for the matrix and primaries.

This also replaces the loop with a constant-time lookup.

(cherry picked from commit ece317a245e8c32a5efc11d5e82dcd8a28a2f10b)

Gbp-Pq: Name 0027-dav1d-treat-RGB-formats-separately.patch

11 months agoUse `vlc_fourcc_GetCodec` to map XVID to MP4V
Mangal Kushwah [Sat, 31 Aug 2024 11:15:07 +0000 (16:45 +0530)]
Use `vlc_fourcc_GetCodec` to map XVID to MP4V

Gbp-Pq: Name 0026-Use-vlc_fourcc_GetCodec-to-map-XVID-to-MP4V.patch

11 months agocodec: videotoolbox: remove sw decoder fallback for mp4v
Mangal Kushwah [Fri, 9 Aug 2024 14:00:05 +0000 (19:30 +0530)]
codec: videotoolbox: remove sw decoder fallback for mp4v

commit 7a2bf498d545d500d30636970fa930eb54de5569 insert packetizer for
xvid mpeg4 video, so now hw decoder can decode xvid encoded video
without any playback issues.

(cherry picked from commit a9343f68bb19a1c20e45e1029848326020b0c69e)

Gbp-Pq: Name 0025-codec-videotoolbox-remove-sw-decoder-fallback-for-mp.patch

11 months agodemux: AVI insert packetizer for XVID MPEG-4 video
Mangal Kushwah [Thu, 8 Aug 2024 16:00:19 +0000 (21:30 +0530)]
demux: AVI insert packetizer for XVID MPEG-4 video

Older DivX-encoded videos commonly use an method called packed
bitstream which puts several video frames into a single AVI chunk.
Since Packed bitstream isn't standard MPEG-4 it causes playback issues
with some hw decoders.

(cherry picked from commit 980e4d7449e9e06bef525d9049dff5b9b5ecd673)

Gbp-Pq: Name 0024-demux-AVI-insert-packetizer-for-XVID-MPEG-4-video.patch

11 months agodemux: asf: add missing subpayloads drain on EOF
François Cartegnie [Fri, 16 Aug 2024 04:30:16 +0000 (11:30 +0700)]
demux: asf: add missing subpayloads drain on EOF

refs #28716

(cherry picked from commit 6bf0a1407b5b9aef792ef94a57142254d079e8fd)

Gbp-Pq: Name 0023-demux-asf-add-missing-subpayloads-drain-on-EOF.patch

11 months agopacketizer: hxxx: add missing drain for non annexb content
François Cartegnie [Thu, 27 Jun 2024 11:24:03 +0000 (18:24 +0700)]
packetizer: hxxx: add missing drain for non annexb content

(cherry picked from commit 4f0a39ada1bd9314601e80d7f48855462524d1fc)

Gbp-Pq: Name 0022-packetizer-hxxx-add-missing-drain-for-non-annexb-con.patch

11 months agopacketizer: hxxx: pass opaque to callbacks instead of decoder
François Cartegnie [Thu, 27 Jun 2024 11:25:07 +0000 (18:25 +0700)]
packetizer: hxxx: pass opaque to callbacks instead of decoder

(cherry picked from commit 09655dea51c0d383cc86c0f5020e3bea160c69bf)

Gbp-Pq: Name 0021-packetizer-hxxx-pass-opaque-to-callbacks-instead-of-.patch

11 months agopacketizer: hxxx_common: rename function pointer
François Cartegnie [Thu, 27 Jun 2024 08:08:55 +0000 (15:08 +0700)]
packetizer: hxxx_common: rename function pointer

(cherry picked from commit 6e7b32f64db918b3aa2deefe885571b734d32f53)

Gbp-Pq: Name 0020-packetizer-hxxx_common-rename-function-pointer.patch

11 months agoopencv: check the image conversion worked
Steve Lhomme [Thu, 18 Jul 2024 07:27:00 +0000 (09:27 +0200)]
opencv: check the image conversion worked

Otherwise we release the output picture that would have been used and returned.

(cherry picked from commit 19813291fcfb31ddd91a2e4d0f1d37ad3239d300) (rebased)
rebased:
- p_filter->p_sys is p_sys on 4.0
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Gbp-Pq: Name 0019-opencv-check-the-image-conversion-worked.patch

11 months agomagnify: check the image conversion worked
Steve Lhomme [Thu, 18 Jul 2024 07:23:58 +0000 (09:23 +0200)]
magnify: check the image conversion worked

return NULL on failure as we cannot produce the required output.

Fixes #28707

(cherry picked from commit 990de75bc0a7db5f2c4e4cb88e868b75b689ac7d) (rebased)
rebased:
- picture_CopyPixels is called picture_CopyVisiblePixels on 4.0
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Gbp-Pq: Name 0018-magnify-check-the-image-conversion-worked.patch

11 months agospectrogram: allows better visualization of low frequencies
Maxime Even [Mon, 8 Jul 2024 15:51:14 +0000 (17:51 +0200)]
spectrogram: allows better visualization of low frequencies

In some cases, Y which represents the height of a column was equal to 1
and therefore when passed through the log, the output displayed was
zero, by adding this 0.1, this allows you to see a column when y = 1
without really changing the height of each column

(cherry picked from commit c347fed91e76bd31387171e1ff67224c21194362)

Gbp-Pq: Name 0017-spectrogram-allows-better-visualization-of-low-frequ.patch

11 months agospectrogram: convert int16 to unsigned for correct range
Maxime Even [Mon, 8 Jul 2024 15:41:39 +0000 (17:41 +0200)]
spectrogram: convert int16 to unsigned for correct range

p_dest is used to set the height of the column, and it is used
as a variable defined from zero to 2^16 - 1. It is therefore
considered in the rest of the program as an unsigned int 16.
Moreover, the value that we put inside are a sum of two squared
real value, so they are necessarily positive.

(cherry picked from commit 94a8d152eadd53073305c95d221eca7623b4ed6c)

Gbp-Pq: Name 0016-spectrogram-convert-int16-to-unsigned-for-correct-ra.patch

11 months agospectrogram: fix FFT result scaling factor
Maxime Even [Tue, 9 Jul 2024 11:20:25 +0000 (13:20 +0200)]
spectrogram: fix FFT result scaling factor

This function is just a scaling operation that passes a value between 0 and
FFT_SCALING_VALUE to a value between 0 and 2^16-1.

It is therefore a power that must be applied here and not a xor.

Moreover, the initial formula was quite wrong since it was assuming that the max_input
value, which is a signed int 16, was 2^15 = 32768 where it is in fact 2^15-1=32767.

Moreover, the initial formula wasn't taking into account that, since the
output of the fft_perform is the sum of two variables which have for max value
(FFT_BUFFER_SIZE / 2 * INT16_MAX)^2, then we need to multiply the final max
value by 2.

Corrects the following compiler warnings:
visualization/glspectrum.c:528:43: warning: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)? [-Wxor-used-as-pow]
visualization/visual/effects.c:216:40: warning: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)? [-Wxor-used-as-pow]

Fixes #28506

Co-authored-by: Disha Baghel <bagheldisha708@gmail.com>
(cherry picked from commit 77a08a60f72bda081d144119e4d0a57a9c3c72f6)

Gbp-Pq: Name 0015-spectrogram-fix-FFT-result-scaling-factor.patch

11 months agoUPnP: remove SAT>IP channel list fallback
Felix Paul Kühne [Thu, 4 Jul 2024 04:29:28 +0000 (06:29 +0200)]
UPnP: remove SAT>IP channel list fallback

When introducing SAT>IP support, we added a fallback mechanism on
officially published channel lists in case the user neither specified
a custom list nor the used set-top box provided one.

With the end of the SAT>IP Alliance that was dissolved 3 years ago, the
fallback server is no longer available and there will be no replacement
so this feature was removed.

Fixes #28684

(cherry picked from commit 3df7b6e1187030591febd8e1bdd2712c0d6af132)

Gbp-Pq: Name 0014-UPnP-remove-SAT-IP-channel-list-fallback.patch

11 months agodemux: adaptive: fix start with indexes only
François Cartegnie [Wed, 26 Jun 2024 09:36:01 +0000 (16:36 +0700)]
demux: adaptive: fix start with indexes only

refs #28683

(cherry picked from commit 9f9c466bc14c1dcd75564c7cd18d031ea9e76325)

Gbp-Pq: Name 0013-demux-adaptive-fix-start-with-indexes-only.patch

11 months agopacketizer: h264: fix reading prediction weight tables
François Cartegnie [Tue, 2 Jul 2024 08:31:51 +0000 (10:31 +0200)]
packetizer: h264: fix reading prediction weight tables

(cherry picked from commit f878115e184a4d896e4df39bccbde32ea6d9357c)

Gbp-Pq: Name 0012-packetizer-h264-fix-reading-prediction-weight-tables.patch

11 months agoqt: hardcode the name of the shortcut for the AMD VQ Enhancer
Steve Lhomme [Wed, 3 Jul 2024 12:12:17 +0000 (14:12 +0200)]
qt: hardcode the name of the shortcut for the AMD VQ Enhancer

Otherwise the name is the same of the DLL which doesn't correspond to
the shortcut we need to use.

Fixes #28691

Gbp-Pq: Name 0011-qt-hardcode-the-name-of-the-shortcut-for-the-AMD-VQ-.patch

11 months agosftp: fix seek for large files on 32-bit OS
Aleksey Vasenev [Sun, 23 Jun 2024 19:41:39 +0000 (22:41 +0300)]
sftp: fix seek for large files on 32-bit OS

(cherry picked from commit 4698e0336447de8dc6f7214743082cc55b6ebd77)

Gbp-Pq: Name 0010-sftp-fix-seek-for-large-files-on-32-bit-OS.patch

11 months agotranscode: fix picture fifo leak
Alaric Senat [Mon, 24 Jun 2024 16:11:59 +0000 (18:11 +0200)]
transcode: fix picture fifo leak

Draining sets the abort flag. It was skipping the picture fifo deletion
before.

Gbp-Pq: Name 0009-transcode-fix-picture-fifo-leak.patch

11 months agotranscode: fix destructive assignment after drain
Alaric Senat [Mon, 24 Jun 2024 16:11:23 +0000 (18:11 +0200)]
transcode: fix destructive assignment after drain

The drain checks are done after the first encoder output fetch. At this
point, `out` is already filled with some frames gotten from the encoder
some lines above:

```
// ...
    if( p_sys->i_threads >= 1 )
    {
        /* Pick up any return data the encoder thread wants to output. */
        vlc_mutex_lock( &p_sys->lock_out );
        *out = p_sys->p_buffers;
        p_sys->p_buffers = NULL;
        vlc_mutex_unlock( &p_sys->lock_out );
    }

// ...
```

This assignment currently leaks all previously gathered frames to
replace them by the drained output. This patch appends the drained
frames to the existing output instead.

Gbp-Pq: Name 0008-transcode-fix-destructive-assignment-after-drain.patch

11 months agovlc_common: remove warnings on VLC_OBJECT
Alexandre Janniaux [Fri, 21 Jun 2024 14:11:28 +0000 (16:11 +0200)]
vlc_common: remove warnings on VLC_OBJECT

Fix an infinite amount of warnings on Darwin:

    ../../include/vlc_variables.h:563:5: warning: due to lvalue conversion of the controlling expression, association of type 'const struct vlc_common_members' will never be selected because it is qualified [-Wunreachable-code-generic-assoc]
        var_Create( p_obj, psz_name, VLC_VAR_STRING | VLC_VAR_DOINHERIT
        ^
    ../../include/vlc_variables.h:122:39: note: expanded from macro 'var_Create'
    #define var_Create(a,b,c) var_Create( VLC_OBJECT(a), b, c )
                                          ^
    ../../include/vlc_common.h:481:15: note: expanded from macro 'VLC_OBJECT'
            const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \

Gbp-Pq: Name 0007-vlc_common-remove-warnings-on-VLC_OBJECT.patch

11 months agoopus_header: fix channel mapping family 1 parsing
Tristan Matthews [Thu, 2 Feb 2023 04:39:36 +0000 (23:39 -0500)]
opus_header: fix channel mapping family 1 parsing

Fixes #27808

(cherry picked from commit 79fa6af0a98921f9d34933761f4fe20ef6c35309)

Gbp-Pq: Name 0006-opus_header-fix-channel-mapping-family-1-parsing.patch

11 months agodemux: avi: do not set up invalid bitsperpixel
François Cartegnie [Tue, 11 Jun 2024 10:26:11 +0000 (17:26 +0700)]
demux: avi: do not set up invalid bitsperpixel

UINT16_MAX is set and propagated from the bitmap header reader

refs #28661

Gbp-Pq: Name 0005-demux-avi-do-not-set-up-invalid-bitsperpixel.patch

11 months agodemux: image: detect ICC profile before JFIF data
Steve Lhomme [Wed, 5 Jun 2024 09:55:39 +0000 (11:55 +0200)]
demux: image: detect ICC profile before JFIF data

Fixes #18857

(cherry picked from commit 5ffd36ffa26a83ae498373f7d0ace1d82ab952f4)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Gbp-Pq: Name 0004-demux-image-detect-ICC-profile-before-JFIF-data.patch

11 months agoBump module ABI for time_t transition
Sebastian Ramacher [Wed, 28 Feb 2024 22:55:22 +0000 (23:55 +0100)]
Bump module ABI for time_t transition

Gbp-Pq: Name 0003-Bump-module-ABI-for-time_t-transition.patch

11 months agoDo not generate cache during build
Sebastian Ramacher [Mon, 6 Jul 2020 22:18:39 +0000 (00:18 +0200)]
Do not generate cache during build

The generated cache is not used in the package. It causes spurious build
failures on the arm64 and ppc64el builds, that are not reproducible
elsewhere.

Gbp-Pq: Name 0002-Do-not-generate-cache-during-build.patch

11 months agoconfigure: fix linking on RISC-V ISA
Rémi Denis-Courmont [Sat, 16 Jun 2018 18:31:45 +0000 (21:31 +0300)]
configure: fix linking on RISC-V ISA

Gbp-Pq: Name 0001-configure-fix-linking-on-RISC-V-ISA.patch

11 months agovlc (3.0.21-6) unstable; urgency=medium
Sebastian Ramacher [Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)]
vlc (3.0.21-6) unstable; urgency=medium

  * debian/patches: Update to 3.0.21-1-385-g7b58309ae7
    * Ignore win32 and compat changes
    * Replace taglib 2.x patches with upstream changes
  * debian/: Re-enable VAAPI support (Closes: #1021601, #1013898)

[dgit import unpatched vlc 3.0.21-6]

11 months agoImport vlc_3.0.21-6.debian.tar.xz
Sebastian Ramacher [Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)]
Import vlc_3.0.21-6.debian.tar.xz

[dgit import tarball vlc 3.0.21-6 vlc_3.0.21-6.debian.tar.xz]

18 months agoImport vlc_3.0.21.orig.tar.xz
Sebastian Ramacher [Sun, 9 Jun 2024 16:01:08 +0000 (18:01 +0200)]
Import vlc_3.0.21.orig.tar.xz

[dgit import orig vlc_3.0.21.orig.tar.xz]