]> git.sesse.net Git - vlc/commitdiff
mux: mp4: fix flags variable size (cid #1251045)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 10 Nov 2014 21:01:22 +0000 (22:01 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 10 Nov 2014 21:10:19 +0000 (22:10 +0100)
modules/mux/mp4.c

index c5dd24d9c2f0e3d97d5197b81ac888cd4448fdf5..ee5d7852697979894452388a671eb8d3c0e2fc91 100644 (file)
@@ -2450,7 +2450,7 @@ static bo_t *GetMoofBox(sout_mux_t *p_mux, size_t *pi_mdat_total_size,
             }
         }
 
-        uint16_t i_tfhd_flags = 0x0;
+        uint32_t i_tfhd_flags = 0x0;
         if (p_stream->read.p_first)
         {
             /* Current segment have all same duration value, different than trex's default */
@@ -2493,7 +2493,7 @@ static bo_t *GetMoofBox(sout_mux_t *p_mux, size_t *pi_mdat_total_size,
         /* *** add /moof/traf/trun *** */
         if (p_stream->read.p_first)
         {
-            uint16_t i_trun_flags = 0x0;
+            uint32_t i_trun_flags = 0x0;
 
             if (p_stream->b_hasiframes && !(p_stream->read.p_first->p_block->i_flags & BLOCK_FLAG_TYPE_I))
                 i_trun_flags |= MP4_TRUN_FIRST_FLAGS;