1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avutil/parsing: add '\r' as whitespace

for compatibility with platforms that treat it
as newline

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
This commit is contained in:
Muhammad Faiz
2016-05-06 07:35:45 +07:00
parent 9c1aa14bf0
commit 83065939cb
4 changed files with 4 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ char *av_d2str(double d)
return str; return str;
} }
#define WHITESPACES " \n\t" #define WHITESPACES " \n\t\r"
char *av_get_token(const char **buf, const char *term) char *av_get_token(const char **buf, const char *term)
{ {

View File

@@ -260,7 +260,7 @@ int av_bprint_finalize(AVBPrint *buf, char **ret_str)
return ret; return ret;
} }
#define WHITESPACES " \n\t" #define WHITESPACES " \n\t\r"
void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars, void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars,
enum AVEscapeMode mode, int flags) enum AVEscapeMode mode, int flags)

View File

@@ -1395,7 +1395,7 @@ int av_set_options_string(void *ctx, const char *opts,
return count; return count;
} }
#define WHITESPACES " \n\t" #define WHITESPACES " \n\t\r"
static int is_key_char(char c) static int is_key_char(char c)
{ {

View File

@@ -64,7 +64,7 @@
*/ */
#define LIBAVUTIL_VERSION_MAJOR 55 #define LIBAVUTIL_VERSION_MAJOR 55
#define LIBAVUTIL_VERSION_MINOR 23 #define LIBAVUTIL_VERSION_MINOR 24
#define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \