Revert "fix missing LIBAVCODEC_VERSION_INT macro error"

This reverts commit 62017504f1a30cfdd7ab410b083819caf1b37e8a.
This commit is contained in:
chenguanglee 2024-11-21 03:53:10 +00:00 committed by Gitee
parent 62017504f1
commit 20c431ac56
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 32 deletions

View File

@ -1,25 +0,0 @@
From f31aa728dc433f457267f45f58618db3c2b34604 Mon Sep 17 00:00:00 2001
From: chenguanglee <lichenguang@kylinos.cn>
Date: Thu, 21 Nov 2024 11:16:04 +0800
Subject: [PATCH] fix missing LIBAVCODEC_VERSION_INT macro error
---
src/common/my_av.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/my_av.h b/src/common/my_av.h
index 0957f37..7f9f9b8 100644
--- a/src/common/my_av.h
+++ b/src/common/my_av.h
@@ -26,7 +26,7 @@ extern "C" {
#include <libavformat/avformat.h>
#include <libavutil/frame.h>
#include <libavutil/mem.h>
-// #include <libavcodec/avcodec.h>
+#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
#include <libavutil/pixfmt.h>
#include <libavutil/samplefmt.h>
--
2.43.0

View File

@ -1,12 +1,11 @@
Name: kylin-screenshot
Version: 1.0.5
Release: 4
Release: 3
Summary: a powerful screenshot and screen recording tool
License: GPL-3+
URL: https://github.com/ubuntukylin
Source0: %{name}-%{version}.tar.gz
Patch01: 0001-fix-kylin-screenshot-not-work.patch
Patch02: 0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch
BuildRequires: qt5-qtx11extras-devel
@ -41,8 +40,7 @@ Suggests: ca-certificates, openssl
%prep
%setup -q
%patch -p1 01
%patch -p1 02
%patch01 -p1
%build
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro
@ -93,9 +91,6 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/metainfo/kylinscreenshot.appdata.xml
%changelog
* Thu Nov 21 2024 lichenguang <lichenguang@kylinos.cn> - 1.0.5-4
- fix missing LIBAVCODEC_VERSION_INT macro error
* Mon Feb 06 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-3
- add build debuginfo and debugsource