Commit 1221f097 authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Mitrofanov
Browse files

filters/resize: Upgrade to a newer libavutil API

Use the AVComponentDescriptor depth field instead of depth_minus1.
parent 99ca611d
...@@ -212,7 +212,7 @@ static int pick_closest_supported_csp( int csp ) ...@@ -212,7 +212,7 @@ static int pick_closest_supported_csp( int csp )
} }
// now determine high depth // now determine high depth
for( int i = 0; i < pix_desc->nb_components; i++ ) 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; ret |= X264_CSP_HIGH_DEPTH;
return ret; return ret;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment