[vlc-commits] libmp4: fix -Wformat warnings

Alexandre Janniaux git at videolan.org
Sat Apr 11 09:13:17 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Apr  2 15:05:40 2020 +0200| [549dfe20dbf6e43978ace8e320f315488342ddf9] | committer: Alexandre Janniaux

libmp4: fix -Wformat warnings

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index c9dacb9079..1a4214f38d 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2432,8 +2432,8 @@ static int MP4_ReadBox_dvc1( stream_t *p_stream, MP4_Box_t *p_box )
         memcpy( p_dvc1->p_vc1, p_peek, i_read );
 
 #ifdef MP4_VERBOSE
-    msg_Dbg( p_stream,
-             "read box: \"dvc1\" profile=%"PRIu8, (p_dvc1->i_profile_level & 0xf0) >> 4 );
+    uint8_t i_profile = (p_dvc1->i_profile_level & 0xf0) >> 4;
+    msg_Dbg( p_stream, "read box: \"dvc1\" profile=%"PRIu8, i_profile );
 #endif
 
     MP4_READBOX_EXIT( 1 );



More information about the vlc-commits mailing list