From 9c31b00cd67fcdd02d6755752e9206f826fe35a6 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Mon, 7 Oct 2024 16:20:14 +0800 Subject: [PATCH] Unbreak X265_BUILD >= 213 Signed-off-by: nyanmisaka --- .../patches/0069-add-fixes-x265-build-from-upstream.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/patches/0069-add-fixes-x265-build-from-upstream.patch b/debian/patches/0069-add-fixes-x265-build-from-upstream.patch index 9b95461d398..711b3c3b3e8 100644 --- a/debian/patches/0069-add-fixes-x265-build-from-upstream.patch +++ b/debian/patches/0069-add-fixes-x265-build-from-upstream.patch @@ -7,7 +7,7 @@ Index: FFmpeg/libavcodec/libx265.c libx265Context *ctx = avctx->priv_data; x265_picture x265pic; - x265_picture x265pic_out = { 0 }; -+#if X265_BUILD >= 210 ++#if (X265_BUILD >= 210) && (X265_BUILD < 213) + x265_picture x265pic_layers_out[MAX_SCALABLE_LAYERS]; + x265_picture* x265pic_lyrptr_out[MAX_SCALABLE_LAYERS]; +#else @@ -21,7 +21,7 @@ Index: FFmpeg/libavcodec/libx265.c } } -+#if X265_BUILD >= 210 ++#if (X265_BUILD >= 210) && (X265_BUILD < 213) + for (i = 0; i < MAX_SCALABLE_LAYERS; i++) + x265pic_lyrptr_out[i] = &x265pic_layers_out[i]; + @@ -41,7 +41,7 @@ Index: FFmpeg/libavcodec/libx265.c - pkt->pts = x265pic_out.pts; - pkt->dts = x265pic_out.dts; -+#if X265_BUILD >= 210 ++#if (X265_BUILD >= 210) && (X265_BUILD < 213) + x265pic_out = x265pic_lyrptr_out[0]; +#else + x265pic_out = &x265pic_solo_out;