Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-08-03 23:51:51 +0300
committerJames Almer <jamrial@gmail.com>2017-08-03 23:51:51 +0300
commitcae2f1db107dcaab31f29a717ce6f0f9b339088a (patch)
treed0dcbc2450ceac75f4ecc7a0e1bdc3a70dfbe3d4 /libavcodec/htmlsubtitles.c
parente67d6c37ee34515ca2cd79137e7ca6b87b170e28 (diff)
avcodec/htmlsubtitles: fix format specifier in av_bprintf calls
Diffstat (limited to 'libavcodec/htmlsubtitles.c')
-rw-r--r--libavcodec/htmlsubtitles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c
index 1492570a74..fb9f900422 100644
--- a/libavcodec/htmlsubtitles.c
+++ b/libavcodec/htmlsubtitles.c
@@ -193,7 +193,7 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
if (!(last_tag->color & 0xff000000))
av_bprintf(dst, "{\\c}");
else if (last_tag->color != cur_tag->color)
- av_bprintf(dst, "{\\c&H%X&}", last_tag->color & 0xffffff);
+ av_bprintf(dst, "{\\c&H%"PRIX32"&}", last_tag->color & 0xffffff);
}
if (cur_tag->face[0]) {
@@ -218,7 +218,7 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
color = html_color_parse(log_ctx, param);
if (color >= 0) {
new_tag->color = 0xff000000 | color;
- av_bprintf(dst, "{\\c&H%X&}", new_tag->color & 0xffffff);
+ av_bprintf(dst, "{\\c&H%"PRIX32"&}", new_tag->color & 0xffffff);
}
} else if (!av_strncasecmp(param, "face=", 5)) {
param += 5 + (param[5] == '"');