summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-08 06:11:50 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-08 06:11:50 +0000
commit8468664bd88a7e7f1c06c6bd44a9b13e25313e4f (patch)
tree801e291c0cc0b328a1e8cd7de38d9a8157e5430c /libavcodec/utils.c
parent8eb027c83cb07a3841e560b867c25103461d47b7 (diff)
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. Originally committed as revision 17045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9720b9179b..000a6e798e 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1032,7 +1032,7 @@ int av_parse_video_frame_size(int *width_ptr, int *height_ptr, const char *str)
{
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 @@ int av_parse_video_frame_size(int *width_ptr, int *height_ptr, const char *str)
}
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;