]> git.sesse.net Git - vlc/commitdiff
avcodec: mark SP/SI/BI pictures
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 15 Mar 2013 10:32:11 +0000 (12:32 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 17 Mar 2013 15:07:19 +0000 (17:07 +0200)
modules/codec/avcodec/encoder.c

index 34d22ebf8846bb198ef55a3b57730167a18233ad..930636e5dda15fae634faea73a916124014a417e 100644 (file)
@@ -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 )
     {
     case AV_PICTURE_TYPE_I:
+    case AV_PICTURE_TYPE_SI:
         p_block->i_flags |= BLOCK_FLAG_TYPE_I;
         break;
     case AV_PICTURE_TYPE_P:
+    case AV_PICTURE_TYPE_SP:
         p_block->i_flags |= BLOCK_FLAG_TYPE_P;
         break;
     case AV_PICTURE_TYPE_B:
+    case AV_PICTURE_TYPE_BI:
         p_block->i_flags |= BLOCK_FLAG_TYPE_B;
         break;
-
+    default:
+        p_block->i_flags |= BLOCK_FLAG_TYPE_PB;
     }
 
     return p_block;