[vlc-commits] packetizer: hevc: remove useless boolean

Francois Cartegnie git at videolan.org
Sun Dec 13 20:46:03 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Dec 12 23:45:31 2015 +0100| [47e3533d80ef836b028c3b00e14cb111c13f3118] | committer: Francois Cartegnie

packetizer: hevc: remove useless boolean

Gathered data means b_vcl

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

 modules/packetizer/hevc.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index a758473..d9d972a 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -70,7 +70,6 @@ struct decoder_sys_t
     /* */
     packetizer_t packetizer;
 
-    bool     b_vcl;
     block_t *p_frame;
 
     uint8_t  i_nal_length_size;
@@ -204,7 +203,6 @@ static block_t *ParseNALBlock(decoder_t *p_dec, bool *pb_ts_used, block_t *p_fra
         block_ChainRelease(p_sys->p_frame);
         block_Release(p_frag);
         p_sys->p_frame = NULL;
-        p_sys->b_vcl = false;
         return NULL;
     }
 
@@ -213,8 +211,6 @@ static block_t *ParseNALBlock(decoder_t *p_dec, bool *pb_ts_used, block_t *p_fra
     if (nalu_type < HEVC_NAL_VPS)
     {
         /* NAL is a VCL NAL */
-        p_sys->b_vcl = true;
-
         if(likely(p_frag->i_buffer > 6))
         {
             bool first_slice_in_pic = p_frag->p_buffer[6] & 0x80;
@@ -228,12 +224,11 @@ static block_t *ParseNALBlock(decoder_t *p_dec, bool *pb_ts_used, block_t *p_fra
     }
     else
     {
-        if (p_sys->b_vcl)
+        if (p_sys->p_frame)
         {
             p_nal = block_ChainGather(p_sys->p_frame);
             p_nal->p_next = p_frag;
             p_sys->p_frame = NULL;
-            p_sys->b_vcl =false;
         }
         else
             p_nal = p_frag;



More information about the vlc-commits mailing list