diff --git a/libavcodec/dvdsub.c b/libavcodec/dvdsub.c index a03ff27754..87215d2bd1 100644 --- a/libavcodec/dvdsub.c +++ b/libavcodec/dvdsub.c @@ -26,7 +26,7 @@ void ff_dvdsub_parse_palette(uint32_t *palette, const char *p) { for (int i = 0; i < 16; i++) { - palette[i] = strtoul(p, &p, 16); + palette[i] = strtoul(p, (char **)&p, 16); while (*p == ',' || av_isspace(*p)) p++; }