Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wlroots for openSUSE:Factory checked 
in at 2023-05-15 16:54:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wlroots (Old)
 and      /work/SRC/openSUSE:Factory/.wlroots.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wlroots"

Mon May 15 16:54:46 2023 rev:26 rq:1087218 version:0.16.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/wlroots/wlroots.changes  2023-02-11 
21:58:23.660022585 +0100
+++ /work/SRC/openSUSE:Factory/.wlroots.new.1533/wlroots.changes        
2023-05-15 16:55:00.568401264 +0200
@@ -1,0 +2,9 @@
+Sat May 13 00:06:13 UTC 2023 - Chris Bradbury <opens...@chrbrd.com>
+
+- Add fix-frame-number-deprecated.patch
+
+  Builds broke for 0.16.2 due to the use of a deprecated FFmpeg
+  attribute in one of the examples, which is fixed by the added
+  patch.
+
+-------------------------------------------------------------------

New:
----
  fix-frame-number-deprecated.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wlroots.spec ++++++
--- /var/tmp/diff_new_pack.bhtFJj/_old  2023-05-15 16:55:01.224404885 +0200
+++ /var/tmp/diff_new_pack.bhtFJj/_new  2023-05-15 16:55:01.236404951 +0200
@@ -74,6 +74,9 @@
 %endif
 %endif
 
+# PATCH-FIX-UPSTREAM fix-frame-number-deprecated.patch 
glfo#wlroots/wlroots!4036
+Patch0:         fix-frame-number-deprecated.patch
+
 %description
 Pluggable, composable modules for building a Wayland compositor.
 

++++++ fix-frame-number-deprecated.patch ++++++
>From 8db0d8289087d9e63438e01f810ef01d82170eb1 Mon Sep 17 00:00:00 2001
From: Simon Ser <cont...@emersion.fr>
Date: Tue, 28 Feb 2023 11:57:07 +0100
Subject: [PATCH] examples/dmabuf-capture: fix frame_number deprecated in
 FFmpeg 6.0

Fixes the following error:

    ../examples/dmabuf-capture.c:524:33: error: 'frame_number' is deprecated 
[-Werror=deprecated-declarations]
      524 |                                 ctx->avctx->frame_number, 
get_fifo_size(&ctx->vid_frames));
          |                                 ^~~
---
 examples/dmabuf-capture.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/examples/dmabuf-capture.c b/examples/dmabuf-capture.c
index 58bf641958..5a7debd23f 100644
--- a/examples/dmabuf-capture.c
+++ b/examples/dmabuf-capture.c
@@ -520,8 +520,14 @@ static void *vid_encode_thread(void *arg) {
                        }
                };
 
-               av_log(ctx, AV_LOG_INFO, "Encoded frame %i (%i in queue)\n",
-                               ctx->avctx->frame_number, 
get_fifo_size(&ctx->vid_frames));
+               int64_t frame_num;
+#if LIBAVUTIL_VERSION_MAJOR >= 58
+               frame_num = ctx->avctx->frame_num;
+#else
+               frame_num = ctx->avctx->frame_number;
+#endif
+               av_log(ctx, AV_LOG_INFO, "Encoded frame %"PRIi64" (%i in 
queue)\n",
+                               frame_num, get_fifo_size(&ctx->vid_frames));
 
        } while (!ctx->err);
 
-- 
GitLab

Reply via email to