[FFmpeg-cvslog] r18125 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Mar 21 21:58:41 CET 2009


Author: rbultje
Date: Sat Mar 21 21:58:41 2009
New Revision: 18125

Log:
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.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Sat Mar 21 21:56:57 2009	(r18124)
+++ trunk/libavformat/rtsp.c	Sat Mar 21 21:58:41 2009	(r18125)
@@ -174,7 +174,7 @@ static int hex_to_data(uint8_t *data, co
     v = 1;
     for(;;) {
         skip_spaces(&p);
-        if (p == '\0')
+        if (*p == '\0')
             break;
         c = toupper((unsigned char)*p++);
         if (c >= '0' && c <= '9')



More information about the ffmpeg-cvslog mailing list