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