[FFmpeg-cvslog] parseutils: fix const removal warning

Mans Rullgard git at videolan.org
Fri Oct 12 14:41:31 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Oct 11 14:12:34 2012 +0100| [15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41] | committer: 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: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15ba7f6525c0f56f0c8e3e3e0c0c5129de054f41
---

 libavutil/parseutils.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index b51f2e8..23fa80c 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);



More information about the ffmpeg-cvslog mailing list