[FFmpeg-cvslog] parseutils: fix various cast qualifier warnings.
Michael Niedermayer
git at videolan.org
Mon Oct 17 23:13:23 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 17 22:57:48 2011 +0200| [fe87b2e79c734a111747a239943c7340f8d3f7d7] | committer: Michael Niedermayer
parseutils: fix various cast qualifier warnings.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe87b2e79c734a111747a239943c7340f8d3f7d7
---
libavutil/parseutils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 2000778..698b2d9 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -97,7 +97,7 @@ int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
{
int i;
int n = FF_ARRAY_ELEMS(video_size_abbrs);
- char *p;
+ const char *p;
int width = 0, height = 0;
for (i = 0; i < n; i++) {
@@ -109,10 +109,10 @@ 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(p, (void*)&p, 10);
if (*p)
p++;
- height = strtol(p, &p, 10);
+ height = strtol(p, (void*)&p, 10);
}
if (width <= 0 || height <= 0)
return AVERROR(EINVAL);
@@ -573,7 +573,7 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
q = small_strptime(p, time_fmt[0], &dt);
if (!q) {
/* parse timestr as S+ */
- dt.tm_sec = strtol(p, (char **)&q, 10);
+ dt.tm_sec = strtol(p, (void *)&q, 10);
if (q == p) {
/* the parsing didn't succeed */
*timeval = INT64_MIN;
More information about the ffmpeg-cvslog
mailing list