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 in1f801dfdb5They have now reverted that API change in78e5b703b1Updated our wrapper guards to unbreak build again.
This commit is contained in:
parent
4ce4ecc19c
commit
768807492d
1 changed files with 3 additions and 3 deletions
|
|
@ -504,7 +504,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
|
||||
|
|
@ -581,7 +581,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||
}
|
||||
}
|
||||
|
||||
#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];
|
||||
|
||||
|
|
@ -618,7 +618,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…
Add table
Add a link
Reference in a new issue