diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-11 14:12:34 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-11 18:00:27 +0100 |
commit | 15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41 (patch) | |
tree | 458a2a6e270a2dbf35721ee0ad9af63089a9ded6 /libavutil/parseutils.c | |
parent | e578f8f4680f7ad290de64270dc152fb1adb6e6a (diff) | |
download | ffmpeg-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.c | 3 |
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); |