Mercurial > libavcodec.hg
diff utils.c @ 8757:d529e239a510 libavcodec
Remove 'const' qualifier from variable in av_parse_video_frame_size().
Thus only one warning is printed due to assignment instead of 2 from strtol.
author | bcoudurier |
---|---|
date | Sun, 08 Feb 2009 06:11:50 +0000 |
parents | 153d7e5d5a5b |
children | f7442819cacf |
line wrap: on
line diff
--- a/utils.c Sun Feb 08 06:03:10 2009 +0000 +++ b/utils.c Sun Feb 08 06:11:50 2009 +0000 @@ -1032,7 +1032,7 @@ { int i; int n = FF_ARRAY_ELEMS(video_frame_size_abbrs); - const char *p; + char *p; int frame_width = 0, frame_height = 0; for(i=0;i<n;i++) { @@ -1044,10 +1044,10 @@ } if (i == n) { p = str; - frame_width = strtol(p, (char **)&p, 10); + frame_width = strtol(p, &p, 10); if (*p) p++; - frame_height = strtol(p, (char **)&p, 10); + frame_height = strtol(p, &p, 10); } if (frame_width <= 0 || frame_height <= 0) return -1;