]> git.sesse.net Git - vlc/commitdiff
x264: use x264 macro to get both B-frame types
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 15 Mar 2013 11:34:06 +0000 (13:34 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 17 Mar 2013 15:07:19 +0000 (17:07 +0200)
modules/codec/x264.c

index 1d00d5b5264a6564978a83081ce5d7021be6b6e0..c79ec11271c6634337202188832966bf918946ae 100644 (file)
@@ -1506,7 +1506,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
         p_block->i_flags |= BLOCK_FLAG_TYPE_I;
     else if( pic.i_type == X264_TYPE_P || pic.i_type == X264_TYPE_I )
         p_block->i_flags |= BLOCK_FLAG_TYPE_P;
-    else if( pic.i_type == X264_TYPE_B )
+    else if( IS_X264_TYPE_B( pic.i_type ) )
         p_block->i_flags |= BLOCK_FLAG_TYPE_B;
     else
         p_block->i_flags |= BLOCK_FLAG_TYPE_PB;