File 0001-Fix-build-with-GCC-14.patch of Package guvcview
From 98feb36a5f4971ca152b2d90a923008d0bd6cf5f Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Tue, 27 Aug 2024 10:31:02 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20build=20with=20GCC=C2=A014?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gview_v4l2core/jpeg_decoder.c | 1 +
gview_v4l2core/uvc_h264.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/gview_v4l2core/jpeg_decoder.c b/gview_v4l2core/jpeg_decoder.c
index 9d30ea2..d60fdf8 100644
--- a/gview_v4l2core/jpeg_decoder.c
+++ b/gview_v4l2core/jpeg_decoder.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
+#include <libavutil/imgutils.h>
#include "gviewv4l2core.h"
#include "colorspaces.h"
diff --git a/gview_v4l2core/uvc_h264.c b/gview_v4l2core/uvc_h264.c
index ed0c6a8..a02271e 100644
--- a/gview_v4l2core/uvc_h264.c
+++ b/gview_v4l2core/uvc_h264.c
@@ -24,6 +24,7 @@
/* support for internationalization - i18n */
#include <inttypes.h>
#include <libavcodec/avcodec.h>
+#include <libavutil/imgutils.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
--
2.46.0