Commit d8b4df3c authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: mark SP/SI/BI pictures

parent 6b01e3ef
...@@ -1040,15 +1040,19 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ) ...@@ -1040,15 +1040,19 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
switch ( p_sys->p_context->coded_frame->pict_type ) switch ( p_sys->p_context->coded_frame->pict_type )
{ {
case AV_PICTURE_TYPE_I: case AV_PICTURE_TYPE_I:
case AV_PICTURE_TYPE_SI:
p_block->i_flags |= BLOCK_FLAG_TYPE_I; p_block->i_flags |= BLOCK_FLAG_TYPE_I;
break; break;
case AV_PICTURE_TYPE_P: case AV_PICTURE_TYPE_P:
case AV_PICTURE_TYPE_SP:
p_block->i_flags |= BLOCK_FLAG_TYPE_P; p_block->i_flags |= BLOCK_FLAG_TYPE_P;
break; break;
case AV_PICTURE_TYPE_B: case AV_PICTURE_TYPE_B:
case AV_PICTURE_TYPE_BI:
p_block->i_flags |= BLOCK_FLAG_TYPE_B; p_block->i_flags |= BLOCK_FLAG_TYPE_B;
break; break;
default:
p_block->i_flags |= BLOCK_FLAG_TYPE_PB;
} }
return p_block; return p_block;
......
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