Commit 15ba7f65 authored by Mans Rullgard's avatar Mans Rullgard

parseutils: fix const removal warning

The const qualifier is still removed although it happens inside
the strtol() function so no warning is generated.

Fixes:
libavutil/parseutils.c:110:11: warning: assignment discards qualifiers from pointer target type
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent e578f8f4
......@@ -107,8 +107,7 @@ int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
}
}
if (i == n) {
p = str;
width = strtol(p, &p, 10);
width = strtol(str, &p, 10);
if (*p)
p++;
height = strtol(p, &p, 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment