Originally committed as revision 9585 to svn://svn.ffmpeg.org/ffmpeg/trunk
int av_strstart(const char *str, const char *pfx, const char **ptr)
{
- while (*pfx && *pfx++ == *str++);
+ while (*pfx && *pfx == *str) {
+ pfx++;
+ str++;
+ }
if (!*pfx && ptr)
*ptr = str;
return !*pfx;
int av_stristart(const char *str, const char *pfx, const char **ptr)
{
- while (*pfx && toupper((unsigned)*pfx++) == toupper((unsigned)*str++));
+ while (*pfx && toupper((unsigned)*pfx) == toupper((unsigned)*str)) {
+ pfx++;
+ str++;
+ }
if (!*pfx && ptr)
*ptr = str;
return !*pfx;