]> granicus.if.org Git - libx264/commitdiff
filters/resize: Upgrade to a newer libavutil API
authorHenrik Gramner <henrik@gramner.com>
Sun, 22 Oct 2017 08:50:46 +0000 (10:50 +0200)
committerAnton Mitrofanov <BugMaster@narod.ru>
Sun, 24 Dec 2017 20:47:27 +0000 (23:47 +0300)
Use the AVComponentDescriptor depth field instead of depth_minus1.

filters/video/resize.c

index 95c8ec8853278c9b896f3d6f25776db1d7f199df..3ec224ebd815573f7f140220cc855a3cc576a560 100644 (file)
@@ -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;
 }