[vlc-devel] [PATCH] mp4: fix typos in sizeof guards

Boris Egorov egorov at linux.com
Sun Sep 21 17:33:54 CEST 2014


Detected by CppCheck

Signed-off-by: Boris Egorov <egorov at linux.com>
---
 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 31624ec..bec3435 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -2646,9 +2646,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);
-- 
2.1.0




More information about the vlc-devel mailing list