Commit 061e8281 authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264: use x264 macro to get both B-frame types

parent 8b0e66a0
...@@ -1506,7 +1506,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict ) ...@@ -1506,7 +1506,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
p_block->i_flags |= BLOCK_FLAG_TYPE_I; p_block->i_flags |= BLOCK_FLAG_TYPE_I;
else if( pic.i_type == X264_TYPE_P || pic.i_type == X264_TYPE_I ) else if( pic.i_type == X264_TYPE_P || pic.i_type == X264_TYPE_I )
p_block->i_flags |= BLOCK_FLAG_TYPE_P; 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; p_block->i_flags |= BLOCK_FLAG_TYPE_B;
else else
p_block->i_flags |= BLOCK_FLAG_TYPE_PB; p_block->i_flags |= BLOCK_FLAG_TYPE_PB;
......
Markdown is supported
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