[FFmpeg-cvslog] dashenc: Use inttypes.h macros for format strings instead of %lld

Martin Storsjö git at videolan.org
Thu Jan 22 12:16:22 CET 2015


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jan 21 16:45:29 2015 +0100| [3a724a7f3ba7fa766c6a6f0924a15cc742031b8d] | committer: Martin Storsjö

dashenc: Use inttypes.h macros for format strings instead of %lld

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a724a7f3ba7fa766c6a6f0924a15cc742031b8d
---

 libavformat/dashenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 25fed12..d715654 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -282,7 +282,7 @@ static DASHTmplId dash_read_tmpl_id(const char *identifier, char *format_tag,
         // next parse the dash format-tag and generate a c-string format tag
         // (next_ptr now points at the first '%' at the beginning of the format-tag)
         if (id_type != DASH_TMPL_ID_UNDEFINED) {
-            const char *number_format = (id_type == DASH_TMPL_ID_TIME) ? "lld" : "d";
+            const char *number_format = (id_type == DASH_TMPL_ID_TIME) ? PRId64 : "d";
             if (next_ptr[0] == '$') { // no dash format-tag
                 snprintf(format_tag, format_tag_size, "%%%s", number_format);
                 *ptr = &next_ptr[1];



More information about the ffmpeg-cvslog mailing list