From 1221f097473a049a52fbb47aff2733321bd4661a Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sun, 22 Oct 2017 10:50:46 +0200 Subject: [PATCH] filters/resize: Upgrade to a newer libavutil API Use the AVComponentDescriptor depth field instead of depth_minus1. --- filters/video/resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/video/resize.c b/filters/video/resize.c index 95c8ec88..3ec224eb 100644 --- a/filters/video/resize.c +++ b/filters/video/resize.c @@ -212,7 +212,7 @@ static int pick_closest_supported_csp( int csp ) } // now determine high depth for( int i = 0; i < pix_desc->nb_components; i++ ) - if( pix_desc->comp[i].depth_minus1 >= 8 ) + if( pix_desc->comp[i].depth > 8 ) ret |= X264_CSP_HIGH_DEPTH; return ret; } -- 2.40.0