1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

parseutils: fix various cast qualifier warnings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-10-17 22:57:48 +02:00
parent 8aed90958d
commit fe87b2e79c

View File

@@ -97,7 +97,7 @@ int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
{ {
int i; int i;
int n = FF_ARRAY_ELEMS(video_size_abbrs); int n = FF_ARRAY_ELEMS(video_size_abbrs);
char *p; const char *p;
int width = 0, height = 0; int width = 0, height = 0;
for (i = 0; i < n; i++) { 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) { if (i == n) {
p = str; p = str;
width = strtol(p, &p, 10); width = strtol(p, (void*)&p, 10);
if (*p) if (*p)
p++; p++;
height = strtol(p, &p, 10); height = strtol(p, (void*)&p, 10);
} }
if (width <= 0 || height <= 0) if (width <= 0 || height <= 0)
return AVERROR(EINVAL); 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); q = small_strptime(p, time_fmt[0], &dt);
if (!q) { if (!q) {
/* parse timestr as S+ */ /* parse timestr as S+ */
dt.tm_sec = strtol(p, (char **)&q, 10); dt.tm_sec = strtol(p, (void *)&q, 10);
if (q == p) { if (q == p) {
/* the parsing didn't succeed */ /* the parsing didn't succeed */
*timeval = INT64_MIN; *timeval = INT64_MIN;