Date: Saturday, November 5, 2022 @ 18:50:16 Author: svenstaro Revision: 1342368
upgpkg: telegram-desktop 4.3.0-1 Modified: telegram-desktop/trunk/PKGBUILD Deleted: telegram-desktop/trunk/fix-ffmpeg5.patch -------------------+ PKGBUILD | 8 ++--- fix-ffmpeg5.patch | 72 ---------------------------------------------------- 2 files changed, 4 insertions(+), 76 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-05 18:50:15 UTC (rev 1342367) +++ PKGBUILD 2022-11-05 18:50:16 UTC (rev 1342368) @@ -1,14 +1,14 @@ # Maintainer: Sven-Hendrik Haase <[email protected]> # Contributor: hexchain <[email protected]> pkgname=telegram-desktop -pkgver=4.2.4 -pkgrel=2 +pkgver=4.3.0 +pkgrel=1 pkgdesc='Official Telegram Desktop client' arch=('x86_64') url="https://desktop.telegram.org/" license=('GPL3') depends=('hunspell' 'ffmpeg4.4' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'ttf-opensans' - 'qt6-imageformats' 'qt6-svg' 'qt6-wayland' 'qt6-5compat' 'xxhash' 'glibmm' + 'qt6-imageformats' 'qt6-svg' 'qt6-wayland' 'qt6-5compat' 'xxhash' 'glibmm-2.68' 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'jemalloc' 'abseil-cpp' 'libdispatch') makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' 'meson' 'extra-cmake-modules' 'wayland-protocols' 'plasma-wayland-protocols' 'libtg_owt') @@ -15,7 +15,7 @@ optdepends=('webkit2gtk: embedded browser features' 'xdg-desktop-portal: desktop integration') source=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tdesktop-${pkgver}-full.tar.gz") -sha512sums=('c0b458e4f21855d1041f7343ffdd501890a7535d040b45a8bd565e545d5bc01a00703af65e14ae407bf53f81a6d28d3f7d6afa664eb5b8e5641b21bb8e669a3a') +sha512sums=('3db38685b03f8ad133c7b99400c3fd958fdc02b55250c41524b492a9f4b0b49760290191f31e039e15276058fc41bfc4b1acdd1b0f15769cf43b7a9291264bd7') prepare() { cd tdesktop-$pkgver-full Deleted: fix-ffmpeg5.patch =================================================================== --- fix-ffmpeg5.patch 2022-11-05 18:50:15 UTC (rev 1342367) +++ fix-ffmpeg5.patch 2022-11-05 18:50:16 UTC (rev 1342368) @@ -1,72 +0,0 @@ -From e89d9ca78abf7dc4fe7c832c07917696eb993868 Mon Sep 17 00:00:00 2001 -From: Nicholas Guriev <[email protected]> -Date: Mon, 7 Mar 2022 11:52:01 +0300 -Subject: [PATCH] Fix build against FFmpeg v5.0 - -It has been released on January 17th. This patch keeps source compatibility -with older versions. ---- - tgcalls/group/AudioStreamingPartInternal.cpp | 5 ++++- - tgcalls/group/AudioStreamingPartPersistentDecoder.cpp | 2 +- - tgcalls/group/VideoStreamingPart.cpp | 5 ++++- - 3 files changed, 9 insertions(+), 3 deletions(-) - -diff --git a/tgcalls/group/AudioStreamingPartInternal.cpp b/tgcalls/group/AudioStreamingPartInternal.cpp -index 27a71cb..5639036 100644 ---- a/tgcalls/group/AudioStreamingPartInternal.cpp -+++ b/tgcalls/group/AudioStreamingPartInternal.cpp -@@ -104,6 +104,9 @@ _avIoContext(std::move(fileData)) { - - _frame = av_frame_alloc(); - -+#if LIBAVFORMAT_VERSION_MAJOR >= 59 -+ const -+#endif - AVInputFormat *inputFormat = av_find_input_format(container.c_str()); - if (!inputFormat) { - _didReadToEnd = true; -@@ -144,7 +147,7 @@ _avIoContext(std::move(fileData)) { - - _streamId = i; - -- _durationInMilliseconds = (int)((inStream->duration + inStream->first_dts) * 1000 / 48000); -+ _durationInMilliseconds = (int)((inStream->duration + av_stream_get_first_dts(inStream)) * 1000 / 48000); - - if (inStream->metadata) { - AVDictionaryEntry *entry = av_dict_get(inStream->metadata, "TG_META", nullptr, 0); -diff --git a/tgcalls/group/AudioStreamingPartPersistentDecoder.cpp b/tgcalls/group/AudioStreamingPartPersistentDecoder.cpp -index e79d430..63ef475 100644 ---- a/tgcalls/group/AudioStreamingPartPersistentDecoder.cpp -+++ b/tgcalls/group/AudioStreamingPartPersistentDecoder.cpp -@@ -32,7 +32,7 @@ class AudioStreamingPartPersistentDecoderState { - AudioStreamingPartPersistentDecoderState(AVCodecParameters const *codecParameters, AVRational timeBase) : - _codecParameters(codecParameters), - _timeBase(timeBase) { -- AVCodec *codec = avcodec_find_decoder(codecParameters->codec_id); -+ const AVCodec *codec = avcodec_find_decoder(codecParameters->codec_id); - if (codec) { - _codecContext = avcodec_alloc_context3(codec); - int ret = avcodec_parameters_to_context(_codecContext, codecParameters); -diff --git a/tgcalls/group/VideoStreamingPart.cpp b/tgcalls/group/VideoStreamingPart.cpp -index 981ad83..bcab11b 100644 ---- a/tgcalls/group/VideoStreamingPart.cpp -+++ b/tgcalls/group/VideoStreamingPart.cpp -@@ -276,6 +276,9 @@ class VideoStreamingPartInternal { - - int ret = 0; - -+#if LIBAVFORMAT_VERSION_MAJOR >= 59 -+ const -+#endif - AVInputFormat *inputFormat = av_find_input_format(container.c_str()); - if (!inputFormat) { - _didReadToEnd = true; -@@ -319,7 +322,7 @@ class VideoStreamingPartInternal { - } - - if (videoCodecParameters && videoStream) { -- AVCodec *codec = avcodec_find_decoder(videoCodecParameters->codec_id); -+ const AVCodec *codec = avcodec_find_decoder(videoCodecParameters->codec_id); - if (codec) { - _codecContext = avcodec_alloc_context3(codec); - ret = avcodec_parameters_to_context(_codecContext, videoCodecParameters);
