diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 406998dc07..47378146fe 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -174,7 +174,7 @@ static int hex_to_data(uint8_t *data, const char *p) v = 1; for(;;) { skip_spaces(&p); - if (p == '\0') + if (*p == '\0') break; c = toupper((unsigned char)*p++); if (c >= '0' && c <= '9')