do { \
char *next, *cur = str, sep; \
int ret; \
\
if (str && strchr(str, ',')) { \
"separate %s.\n", desc); \
sep = ','; \
} else \
sep = '|'; \
\
while (cur) { \
type fmt; \
next = strchr(cur, sep); \
if (next) \
*next++ = 0; \
\
if ((fmt = get_fmt(cur)) == none) { \
av_log(ctx,
AV_LOG_ERROR,
"Error parsing " desc
": %s.\n", cur);\
return AVERROR(EINVAL); \
} \
if ((ret = add_to_list(&list, fmt)) < 0) { \
unref_fn(&list); \
return ret; \
} \
\
cur = next; \
} \
} while (0)
#define AV_LOG_WARNING
Something somehow does not look correct.
Definition: log.h:182
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176