[vlc-commits] mp4: fix typos in sizeof guards

Boris Egorov git at videolan.org
Sun Sep 28 16:53:13 CEST 2014


vlc | branch: master | Boris Egorov <egorov at linux.com> | Sun Sep 21 14:33:54 2014 +0000| [77f2eb29790dac945f248ec353ce4ca6dbbdea69] | committer: Jean-Baptiste Kempf

mp4: fix typos in sizeof guards

Detected by CppCheck

Signed-off-by: Boris Egorov <egorov at linux.com>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 9594285..c5dd24d 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -2651,9 +2651,9 @@ static bo_t *GetMfraBox(sout_mux_t *p_mux)
                 const mp4_fragindex_t *p_indexentry = &p_stream->p_indexentries[i_index];
                 bo_add_32be(tfra, p_indexentry->i_time);
                 bo_add_32be(tfra, p_indexentry->i_moofoffset);
-                assert(sizeof(p_indexentry->i_traf==1)); /* guard against sys changes */
-                assert(sizeof(p_indexentry->i_trun==1));
-                assert(sizeof(p_indexentry->i_sample==4));
+                assert(sizeof(p_indexentry->i_traf)==1); /* guard against sys changes */
+                assert(sizeof(p_indexentry->i_trun)==1);
+                assert(sizeof(p_indexentry->i_sample)==4);
                 bo_add_8(tfra, p_indexentry->i_traf);
                 bo_add_8(tfra, p_indexentry->i_trun);
                 bo_add_32be(tfra, p_indexentry->i_sample);



More information about the vlc-commits mailing list