summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
200c9b1)
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
AVBPrint bprint;
char * key = NULL;
char * value = NULL;
AVBPrint bprint;
char * key = NULL;
char * value = NULL;
av_bprint_init(&bprint, 64, AV_BPRINT_SIZE_UNLIMITED);
av_bprint_init(&bprint, 64, AV_BPRINT_SIZE_UNLIMITED);
if (c == '\0') {
state = PARSE_FINISHED;
} else if (c == '=') {
if (c == '\0') {
state = PARSE_FINISHED;
} else if (c == '=') {
- av_bprint_finalize(&bprint, &key);
+ ret = av_bprint_finalize(&bprint, &key);
+ if (ret < 0)
+ return ret;
av_bprint_init(&bprint, 64, AV_BPRINT_SIZE_UNLIMITED);
state = PARSE_VALUE;
} else {
av_bprint_init(&bprint, 64, AV_BPRINT_SIZE_UNLIMITED);
state = PARSE_VALUE;
} else {