mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
ffmpegx: lavc/libx265: unbreak build for X265_BUILD >= 213
- 099f88b864
- https://bitbucket.org/multicoreware/x265_git/commits/78e5b703b1
This commit is contained in:
parent
15e88aaa1e
commit
22554bfb1f
@ -0,0 +1,48 @@
|
||||
From 099f88b8641dfc299f3896d17d9addc5b9ae7799 Mon Sep 17 00:00:00 2001
|
||||
From: Gyan Doshi <ffmpeg@gyani.pro>
|
||||
Date: Sat, 5 Oct 2024 10:08:31 +0530
|
||||
Subject: [PATCH] avcodec/libx265: unbreak build for X265_BUILD >= 213
|
||||
|
||||
Earlier, x265 made an API change to support alpha and
|
||||
other multiple layer pictures. We added guards to accommodate
|
||||
that in 1f801dfdb5
|
||||
|
||||
They have now reverted that API change in
|
||||
https://bitbucket.org/multicoreware/x265_git/commits/78e5b703b1
|
||||
|
||||
Updated our wrapper guards to unbreak build again.
|
||||
---
|
||||
libavcodec/libx265.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
|
||||
index 513f4733079dd..63cc497f835f0 100644
|
||||
--- a/libavcodec/libx265.c
|
||||
+++ b/libavcodec/libx265.c
|
||||
@@ -661,7 +661,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
{
|
||||
libx265Context *ctx = avctx->priv_data;
|
||||
x265_picture x265pic;
|
||||
-#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
|
||||
@@ -805,7 +805,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
#endif
|
||||
}
|
||||
|
||||
-#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];
|
||||
|
||||
@@ -844,7 +844,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
}
|
||||
|
||||
-#if X265_BUILD >= 210
|
||||
+#if (X265_BUILD >= 210) && (X265_BUILD < 213)
|
||||
x265pic_out = x265pic_lyrptr_out[0];
|
||||
#else
|
||||
x265pic_out = &x265pic_solo_out;
|
Loading…
x
Reference in New Issue
Block a user