[vlc-commits] avcodec: mark SP/SI/BI pictures

Ilkka Ollakka git at videolan.org
Sun Mar 17 16:12:15 CET 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Mar 15 12:32:11 2013 +0200| [d8b4df3cd6a51e7f2c17ef5dd5c86efd928e8be2] | committer: Ilkka Ollakka

avcodec: mark SP/SI/BI pictures

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8b4df3cd6a51e7f2c17ef5dd5c86efd928e8be2
---

 modules/codec/avcodec/encoder.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 34d22eb..930636e 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -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;



More information about the vlc-commits mailing list