public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ffmpeg] epel9-next: Refresh OpenH264 dlopen patch
@ 2026-07-14 21:59 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-07-14 21:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ffmpeg
Branch : epel9-next
Commit : 316babd0194207affbbfa9b6fe39f471f03158ef
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2022-02-18T08:14:36-05:00
Stats  : +17/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ffmpeg/c/316babd0194207affbbfa9b6fe39f471f03158ef?branch=epel9-next

Log:
Refresh OpenH264 dlopen patch

---
diff --git a/ffmpeg-dlopen-openh264.patch b/ffmpeg-dlopen-openh264.patch
index 9a8b89c..cd4892e 100644
--- a/ffmpeg-dlopen-openh264.patch
+++ b/ffmpeg-dlopen-openh264.patch
@@ -1,6 +1,6 @@
-From e831c68c93ed2d155178aa89b06901558298ce30 Mon Sep 17 00:00:00 2001
+From 5f72b7ea6a214f3c32e4089486ece8f1ad3d07a7 Mon Sep 17 00:00:00 2001
 From: Neal Gompa <ngompa@fedoraproject.org>
-Date: Fri, 18 Feb 2022 07:42:05 -0500
+Date: Fri, 18 Feb 2022 08:12:54 -0500
 Subject: [PATCH] avcodec/openh264: Add the ability to dlopen() OpenH264
 
 We can't directly depend on OpenH264, but we can weakly link to it
@@ -17,14 +17,14 @@ Signed-off-by: Neal Gompa <ngompa@fedoraproject.org>
  libavcodec/libopenh264.c        |  15 +++-
  libavcodec/libopenh264_dlopen.c | 147 ++++++++++++++++++++++++++++++++
  libavcodec/libopenh264_dlopen.h |  58 +++++++++++++
- libavcodec/libopenh264dec.c     |   9 ++
- libavcodec/libopenh264enc.c     |   9 ++
- 7 files changed, 241 insertions(+), 1 deletion(-)
+ libavcodec/libopenh264dec.c     |  10 +++
+ libavcodec/libopenh264enc.c     |  10 +++
+ 7 files changed, 243 insertions(+), 1 deletion(-)
  create mode 100644 libavcodec/libopenh264_dlopen.c
  create mode 100644 libavcodec/libopenh264_dlopen.h
 
 diff --git a/configure b/configure
-index 6b5ef6332e..f08e566e98 100755
+index 6b5ef6332e..0a7ccc7dc4 100755
 --- a/configure
 +++ b/configure
 @@ -250,6 +250,7 @@ External library support:
@@ -47,7 +47,7 @@ index 6b5ef6332e..f08e566e98 100755
                                   require libopencv opencv2/core/core_c.h cvCreateImageHeader -lopencv_core -lopencv_imgproc; } ||
                                 require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader; }
  enabled libopenh264       && require_pkg_config libopenh264 openh264 wels/codec_api.h WelsGetCodecVersion
-+enabled libopenh264_dlopen && enable libopenh264 && add_cppflags "-I$(dirname `readlink -f $0`)/ffdlopenhdrs/include -DCONFIG_LIBOPENH264_DLOPEN=1"
++enabled libopenh264_dlopen && enable libopenh264 && add_cppflags "-I$(dirname readlink -f $0)/ffdlopenhdrs/include -DCONFIG_LIBOPENH264_DLOPEN=1"
  enabled libopenjpeg       && { check_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version ||
                                 { require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
  enabled libopenmpt        && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
@@ -316,7 +316,7 @@ index 0000000000..d7d8bb7cad
 +
 +#endif /* HAVE_LIBOPENH264_DLOPEN_H */
 diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c
-index 7f5e85402a..34b238519e 100644
+index 97d3630df6..feb0a0927e 100644
 --- a/libavcodec/libopenh264dec.c
 +++ b/libavcodec/libopenh264dec.c
 @@ -19,8 +19,12 @@
@@ -332,20 +332,21 @@ index 7f5e85402a..34b238519e 100644
  
  #include "libavutil/common.h"
  #include "libavutil/fifo.h"
-@@ -55,6 +59,11 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
+@@ -55,6 +59,12 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
      int log_level;
      WelsTraceCallback callback_function;
  
 +#ifdef CONFIG_LIBOPENH264_DLOPEN
-+    if (loadLibOpenH264(avctx))
++    if (loadLibOpenH264(avctx)) {
 +         return AVERROR_DECODER_NOT_FOUND;
++    }
 +#endif
 +
      if ((err = ff_libopenh264_check_version(avctx)) < 0)
-         return err;
+         return AVERROR_DECODER_NOT_FOUND;
  
 diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
-index de4b85c411..644458a5bb 100644
+index 2001dc22b4..c8b1348df2 100644
 --- a/libavcodec/libopenh264enc.c
 +++ b/libavcodec/libopenh264enc.c
 @@ -19,8 +19,12 @@
@@ -361,17 +362,18 @@ index de4b85c411..644458a5bb 100644
  
  #include "libavutil/attributes.h"
  #include "libavutil/common.h"
-@@ -136,6 +140,11 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
+@@ -136,6 +140,12 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
      WelsTraceCallback callback_function;
      AVCPBProperties *props;
  
 +#ifdef CONFIG_LIBOPENH264_DLOPEN
-+    if (loadLibOpenH264(avctx))
++    if (loadLibOpenH264(avctx)) {
 +         return AVERROR_ENCODER_NOT_FOUND;
++    }
 +#endif
 +
      if ((err = ff_libopenh264_check_version(avctx)) < 0)
-         return err;
+         return AVERROR_ENCODER_NOT_FOUND;
  
 -- 
 2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-14 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 21:59 [rpms/ffmpeg] epel9-next: Refresh OpenH264 dlopen patch Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox