chore: scope the patch for x265 4.0 build

upstream has reverted the x265_encoder_encode api change in 78e5b703b1 per 4.1 release, thus the patch is no longer needed, hence reverting for now. (previous 4.0 API change commit, c69c113960)

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2024-12-28 22:12:43 -05:00
parent fe65681012
commit 3bf931e5ca
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
1 changed files with 2 additions and 2 deletions

View File

@ -461,7 +461,7 @@ static int encode_frame( unsigned char *inBuf, int width, int height )
pic->stride[1] = width/2;
pic->stride[2] = width/2;
#ifdef MAX_SCALABLE_LAYERS
#if defined(MAX_SCALABLE_LAYERS) && (X265_BUILD >= 210) && (X265_BUILD < 213)
/* Handle API changes for scalable layers output in x265 4.0 */
x265_picture *pics[MAX_SCALABLE_LAYERS] = {NULL};
pics[0] = pic;
@ -501,7 +501,7 @@ static int close(void)
/* Flush delayed frames */
while( hdl != NULL )
{
#ifdef MAX_SCALABLE_LAYERS
#if defined(MAX_SCALABLE_LAYERS) && (X265_BUILD >= 210) && (X265_BUILD < 213)
/* Handle API changes for scalable layers output in x265 4.0 */
x265_picture *pics[MAX_SCALABLE_LAYERS] = {NULL};
pics[0] = pic;