summaryrefslogtreecommitdiff
path: root/libavutil/parseutils.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-11 14:12:34 +0100
committerMans Rullgard <mans@mansr.com>2012-10-11 18:00:27 +0100
commit15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41 (patch)
tree458a2a6e270a2dbf35721ee0ad9af63089a9ded6 /libavutil/parseutils.c
parente578f8f4680f7ad290de64270dc152fb1adb6e6a (diff)
downloadffmpeg-15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41.tar.gz
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: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavutil/parseutils.c')
-rw-r--r--libavutil/parseutils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index b51f2e86ce..23fa80c01b 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -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);