[vlc-commits] x265: tag IDR and non-disposable B frames

Rafaël Carré git at videolan.org
Thu Apr 17 15:47:07 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Apr 17 10:08:05 2014 +0200| [50fbb8e9a4b560da9e13820c47b16a9367c5f60b] | committer: Rafaël Carré

x265: tag IDR and non-disposable B frames

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

 modules/codec/x265.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/x265.c b/modules/codec/x265.c
index dff438d..ff28059 100644
--- a/modules/codec/x265.c
+++ b/modules/codec/x265.c
@@ -115,12 +115,14 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
     switch (pic.sliceType)
     {
     case X265_TYPE_I:
+    case X265_TYPE_IDR:
         p_block->i_flags |= BLOCK_FLAG_TYPE_I;
         break;
     case X265_TYPE_P:
         p_block->i_flags |= BLOCK_FLAG_TYPE_P;
         break;
     case X265_TYPE_B:
+    case X265_TYPE_BREF:
         p_block->i_flags |= BLOCK_FLAG_TYPE_B;
         break;
     }



More information about the vlc-commits mailing list