提交 6a8c8b36 编写于 作者: R Ronald S. Bultje

Fix silly bug in hex_to_data() where it compares a string pointer for whether

it is '\0' rather than its content (char *p; if (p == '\0') instead of if
(*p == '\0')). See summary in "[PATCH] rtsp.c small cleanups" thread on
mailinglist.

Originally committed as revision 18125 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 64917dd3
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册