Commit 50fbb8e9 authored by Rafaël Carré's avatar Rafaël Carré

x265: tag IDR and non-disposable B frames

parent be0796a6
...@@ -115,12 +115,14 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict) ...@@ -115,12 +115,14 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
switch (pic.sliceType) switch (pic.sliceType)
{ {
case X265_TYPE_I: case X265_TYPE_I:
case X265_TYPE_IDR:
p_block->i_flags |= BLOCK_FLAG_TYPE_I; p_block->i_flags |= BLOCK_FLAG_TYPE_I;
break; break;
case X265_TYPE_P: case X265_TYPE_P:
p_block->i_flags |= BLOCK_FLAG_TYPE_P; p_block->i_flags |= BLOCK_FLAG_TYPE_P;
break; break;
case X265_TYPE_B: case X265_TYPE_B:
case X265_TYPE_BREF:
p_block->i_flags |= BLOCK_FLAG_TYPE_B; p_block->i_flags |= BLOCK_FLAG_TYPE_B;
break; break;
} }
......
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