Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-21 23:58:41 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-21 23:58:41 +0300
commit6a8c8b36b9f9a87daa02140c006f55f1a795294e (patch)
treefb6025a6c20e8638ca95cf64e1f7c1b13ffb6caf /libavformat
parent64917dd3df832ab21c470e2ae9c05f5d2e067a80 (diff)
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
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')