]> git.sesse.net Git - ffmpeg/commitdiff
dashenc: Use inttypes.h macros for format strings instead of %lld
authorMartin Storsjö <martin@martin.st>
Wed, 21 Jan 2015 15:45:29 +0000 (16:45 +0100)
committerMartin Storsjö <martin@martin.st>
Thu, 22 Jan 2015 06:49:41 +0000 (08:49 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c

index 25fed1293474b8379563262d118e96b0a8b51dbd..d715654ca7be71a8686b1960f42ce6f8b23bf057 100644 (file)
@@ -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];