[vlc-commits] mp4: fix printf formating

Rémi Duraffort git at videolan.org
Sat Sep 3 10:36:17 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug  9 00:23:18 2011 +0200| [d305c3cb0973bf22efdf2de2203963f98d628740] | committer: Rémi Duraffort

mp4: fix printf formating

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 31da404..cd6fe44 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -520,7 +520,7 @@ static int MP4_ReadBox_tfhd(  stream_t *p_stream, MP4_Box_t *p_box )
         char psz_size[128] = "\0";
         char psz_flag[128] = "\0";
         if( p_box->data.p_tfhd->i_flags & MP4_TFHD_BASE_DATA_OFFSET )
-            snprintf(psz_base, sizeof(psz_base), "base offset %lld", p_box->data.p_tfhd->i_base_data_offset);
+            snprintf(psz_base, sizeof(psz_base), "base offset %"PRId64, p_box->data.p_tfhd->i_base_data_offset);
         if( p_box->data.p_tfhd->i_flags & MP4_TFHD_SAMPLE_DESC_INDEX )
             snprintf(psz_desc, sizeof(psz_desc), "sample description index %d", p_box->data.p_tfhd->i_sample_description_index);
         if( p_box->data.p_tfhd->i_flags & MP4_TFHD_DFLT_SAMPLE_DURATION )



More information about the vlc-commits mailing list