diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:58:41 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:58:41 +0000 |
commit | 6a8c8b36b9f9a87daa02140c006f55f1a795294e (patch) | |
tree | fb6025a6c20e8638ca95cf64e1f7c1b13ffb6caf /libavformat/rtsp.c | |
parent | 64917dd3df832ab21c470e2ae9c05f5d2e067a80 (diff) | |
download | ffmpeg-6a8c8b36b9f9a87daa02140c006f55f1a795294e.tar.gz |
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/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
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') |