OSDN Git Service

avutil/parsing: add '\r' as whitespace
authorMuhammad Faiz <mfcc64@gmail.com>
Fri, 6 May 2016 00:35:45 +0000 (07:35 +0700)
committerMuhammad Faiz <mfcc64@gmail.com>
Fri, 6 May 2016 00:35:45 +0000 (07:35 +0700)
for compatibility with platforms that treat it
as newline

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
libavutil/avstring.c
libavutil/bprint.c
libavutil/opt.c
libavutil/version.h

index 85fb3e9..b4dace0 100644 (file)
@@ -144,7 +144,7 @@ char *av_d2str(double d)
     return str;
 }
 
-#define WHITESPACES " \n\t"
+#define WHITESPACES " \n\t\r"
 
 char *av_get_token(const char **buf, const char *term)
 {
index 0a0d078..7ef84d4 100644 (file)
@@ -260,7 +260,7 @@ int av_bprint_finalize(AVBPrint *buf, char **ret_str)
     return ret;
 }
 
-#define WHITESPACES " \n\t"
+#define WHITESPACES " \n\t\r"
 
 void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars,
                       enum AVEscapeMode mode, int flags)
index ae92da0..70a68d9 100644 (file)
@@ -1395,7 +1395,7 @@ int av_set_options_string(void *ctx, const char *opts,
     return count;
 }
 
-#define WHITESPACES " \n\t"
+#define WHITESPACES " \n\t\r"
 
 static int is_key_char(char c)
 {
index 57759da..35b6374 100644 (file)
@@ -64,7 +64,7 @@
  */
 
 #define LIBAVUTIL_VERSION_MAJOR  55
-#define LIBAVUTIL_VERSION_MINOR  23
+#define LIBAVUTIL_VERSION_MINOR  24
 #define LIBAVUTIL_VERSION_MICRO 100
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \