Commit 649b2e4c authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '317cfaa5'

* commit '317cfaa5':
  asfdec: prevent the memory leak in the asf_read_metada_obj
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 4b6ccccb 317cfaa5
......@@ -590,8 +590,10 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
buflen);
if (!strcmp(name, "AspectRatioX") || !strcmp(name, "AspectRatioY")) {
ret = asf_store_aspect_ratio(s, st_num, name, type);
if (ret < 0)
return ret;
if (ret < 0) {
av_freep(&name);
break;
}
} else {
if (st_num < ASF_MAX_STREAMS) {
if ((ret = process_metadata(s, name, name_len, val_len, type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment