Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4ff79a92f0 | |||
| 2fa4435072 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1db8567f75884dfc5dd41208f309b11e4e4ca48ecad537915885b64aa03857a4
|
||||
size 143660
|
||||
48
pqiv-2.13.2-avcodec_close.patch
Normal file
48
pqiv-2.13.2-avcodec_close.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
From a36571549a32d2ec41d6f523d443de74e0fb1276 Mon Sep 17 00:00:00 2001
|
||||
From: Phillip Berndt <phillip.berndt@googlemail.com>
|
||||
Date: Sun, 14 Sep 2025 21:19:16 +0200
|
||||
Subject: [PATCH] Drop avcodec_close call in ffmpeg backend
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This establishes ffmpeg 8.0 support. The call was never needed, older
|
||||
ffmpeg versions have a deprecation notice:
|
||||
|
||||
> Do not use this function. Use avcodec_free_context() to destroy a
|
||||
> codec context (either open or closed). Opening and closing a codec
|
||||
> context multiple times is not supported anymore – use multiple codec
|
||||
> contexts instead.
|
||||
|
||||
fixes #258
|
||||
---
|
||||
README.markdown | 3 +++
|
||||
backends/libav.c | 1 -
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/README.markdown b/README.markdown
|
||||
index c9e643d..3f51c93 100644
|
||||
--- a/README.markdown
|
||||
+++ b/README.markdown
|
||||
@@ -182,6 +182,9 @@ For some advanced uses of pqiv, take a look at these resouces:
|
||||
Changelog
|
||||
---------
|
||||
|
||||
+pqiv 2.14 (wip)
|
||||
+ * Fix ffmpeg 8.0 compatibility (fixes #258)
|
||||
+
|
||||
pqiv 2.13.2
|
||||
* Revert to not adding `--browse` to desktop files (fixes #232)
|
||||
* Fix crash for videos with unusual resolutions (fixes #247)
|
||||
diff --git a/backends/libav.c b/backends/libav.c
|
||||
index f3bfee7..da26c97 100644
|
||||
--- a/backends/libav.c
|
||||
+++ b/backends/libav.c
|
||||
@@ -167,7 +167,6 @@ void file_type_libav_unload(file_t *file) {/*{{{*/
|
||||
}
|
||||
|
||||
if(private->avcontext) {
|
||||
- avcodec_close(private->cocontext);
|
||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,53,0)
|
||||
avcodec_free_context(&(private->cocontext));
|
||||
#else
|
||||
3
pqiv-2.13.2.tar.gz
Normal file
3
pqiv-2.13.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:154cbbe0a62be12cee23b0a46a86b2305d8128fd19924308ad5e9d22fa5ad4f7
|
||||
size 143704
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 10 21:44:59 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- update to 2.13.2:
|
||||
* fix a crash observed with ffmpeg for video files with unusual sizes
|
||||
- add pqiv-2.13.2-avcodec_close.patch to fix build with ffmpeg 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 24 07:27:12 UTC 2024 - Andrea Manzini <andrea.manzini@suse.com>
|
||||
|
||||
|
||||
13
pqiv.spec
13
pqiv.spec
@@ -2,6 +2,7 @@
|
||||
# spec file for package pqiv
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,13 +18,14 @@
|
||||
|
||||
|
||||
Name: pqiv
|
||||
Version: 2.13.1
|
||||
Version: 2.13.2
|
||||
Release: 0
|
||||
Summary: Minimalist image viewer
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Graphics/Viewers
|
||||
URL: https://github.com/phillipberndt/pqiv
|
||||
Source: https://github.com/phillipberndt/pqiv/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: pqiv-2.13.2-avcodec_close.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(ImageMagick)
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
@@ -120,7 +122,7 @@ Requires: %{name} = %{version}
|
||||
Backend webp for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
./configure \
|
||||
@@ -142,25 +144,32 @@ Backend webp for %{name}
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%files ffmpeg
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-libav.so
|
||||
|
||||
%files gdkpixbuf
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-gdkpixbuf.so
|
||||
|
||||
%files libarchive
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-archive.so
|
||||
%{_libdir}/%{name}/%{name}-backend-archive_cbx.so
|
||||
|
||||
%files poppler
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-poppler.so
|
||||
|
||||
%files spectre
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-spectre.so
|
||||
|
||||
%files wand
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-wand.so
|
||||
|
||||
%files webp
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}/%{name}-backend-webp.so
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user