[vlc-commits] mux: mp4: fix flags variable size (cid #1251045)

Francois Cartegnie git at videolan.org
Mon Nov 10 22:10:24 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 10 22:01:22 2014 +0100| [5763e86db84500bbc7cadc2d8a6140565ded62f0] | committer: Francois Cartegnie

mux: mp4: fix flags variable size (cid #1251045)

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

 modules/mux/mp4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index c5dd24d..ee5d785 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -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;



More information about the vlc-commits mailing list