[vlc-commits] demux: mp4: fix -Wformat warning with PRIu16

Alexandre Janniaux git at videolan.org
Tue May 19 16:21:03 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon May  4 19:36:05 2020 +0200| [e1163f96a23bc4e3d447d33a7470628580e4d881] | committer: Alexandre Janniaux

demux: mp4: fix -Wformat warning with PRIu16

MP4_BoxGet doesn't need a dedicated format for the given index.

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

 modules/demux/mp4/attachments.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/attachments.c b/modules/demux/mp4/attachments.c
index 59db7bb22b..20fa4ea512 100644
--- a/modules/demux/mp4/attachments.c
+++ b/modules/demux/mp4/attachments.c
@@ -316,7 +316,7 @@ int MP4_GetAttachments( const MP4_Box_t *p_root, input_attachment_t ***ppp_attac
             {
                 char rgz_path[14];
                 snprintf( rgz_path, 14,
-                         "/%4.4s[%"PRIu16"]",
+                         "/%4.4s[%u]",
                          (const char *) &p_pnot->data.p_pnot->i_type,
                          p_pnot->data.p_pnot->i_index - 1 );
                 const MP4_Box_t *p_pict = MP4_BoxGet( p_root, rgz_path );



More information about the vlc-commits mailing list