OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64917dd
)
Fix silly bug in hex_to_data() where it compares a string pointer for whether
author
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 21 Mar 2009 20:58:41 +0000
(20:58 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 21 Mar 2009 20:58:41 +0000
(20:58 +0000)
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
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
406998d
..
4737814
100644
(file)
--- 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')