Lakka-LibreELEC/packages/multimedia/ffmpeg/patches/L4T/0028-codecs-nvv4l2-undo-struct-commenting-due-to-OpenBuil.patch
GavinDarkglider 66e50e96b9 Lakka v5.x switch 6 (#1926)
* L4T: Fix/Enable NVV4l2 decoder in libreelec builds.

* L4T: LibreELEC: Allow Kodi to run as root

* L4T: Small Tree Cleanup

* Bluez: Switch: LibreELEC: Fix fast connect on all switch builds, not just lakka.

* L4T: Finish ffmpeg 6.0 patchset

* L4T: Fix building newer libcec for switch

* L4T: switch-bsp: Update dock hotplug to check distro stuff, before integrating CEC and bump version.
2024-01-29 20:49:02 +02:00

57 lines
1.7 KiB
Diff

From 1340217cbcc40418337225ca12d1d0f5dd82e682 Mon Sep 17 00:00:00 2001
From: Azkali <a.ffcc7@gmail.com>
Date: Thu, 26 Jan 2023 03:44:07 +0100
Subject: [PATCH 28/39] codecs: nvv4l2: undo struct commenting due to
OpenBuildServic weirdness
---
libavcodec/nvv4l2_ext_utils.h | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/libavcodec/nvv4l2_ext_utils.h b/libavcodec/nvv4l2_ext_utils.h
index 04a2ee1c79..4fb66583de 100644
--- a/libavcodec/nvv4l2_ext_utils.h
+++ b/libavcodec/nvv4l2_ext_utils.h
@@ -226,12 +226,12 @@ enum v4l2_mpeg_video_h265_profile {
__u8 scaling_list_8x8[6][64];
}; */
-/* struct v4l2_h264_weight_factors {
+struct v4l2_h264_weight_factors {
__s8 luma_weight[32];
__s8 luma_offset[32];
__s8 chroma_weight[32][2];
__s8 chroma_offset[32][2];
-}; */
+};
struct v4l2_h264_pred_weight_table {
__u8 luma_log2_weight_denom;
@@ -289,15 +289,15 @@ struct v4l2_ctrl_h264_slice_param {
If not set, this entry is unused for reference. */
#define V4L2_H264_DPB_ENTRY_FLAG_ACTIVE 0x01
#define V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM 0x02
-/* struct v4l2_h264_dpb_entry { */
-/* __u32 buf_index; /**< v4l2_buffer index. */
-/* __u16 frame_num;
- __u16 pic_num; */
+struct v4l2_h264_dpb_entry {
+ __u32 buf_index; /**< v4l2_buffer index. */
+ __u16 frame_num;
+ __u16 pic_num;
/** @note `v4l2_buffer.field` specifies this field. */
-/* __s32 top_field_order_cnt;
- __s32 bottom_field_order_cnt; */
-/* __u8 flags; /* V4L2_H264_DPB_ENTRY_FLAG_* */
-/* }; */
+ __s32 top_field_order_cnt;
+ __s32 bottom_field_order_cnt;
+ __u8 flags; /* V4L2_H264_DPB_ENTRY_FLAG_* */
+};
struct v4l2_ctrl_h264_decode_param {
__u32 num_slices;
--
2.25.1