projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
350ed18
)
nutdec: Prevent a memory corruption
author
Luca Barbato
<lu_zero@gentoo.org>
Sat, 18 Oct 2014 15:58:47 +0000
(16:58 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 20 Oct 2014 09:47:03 +0000
(10:47 +0100)
Chapters do not have an event_flags field.
Bug-Id: CID
1231990
libavformat/nutdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nutdec.c
b/libavformat/nutdec.c
index 6c95d5507bbe920f905c237053847677e1894c3b..56d208fcc8b353415331efbbb6792453f13aeb02 100644
(file)
--- a/
libavformat/nutdec.c
+++ b/
libavformat/nutdec.c
@@
-461,7
+461,7
@@
static int decode_info_header(NUTContext *nut)
int64_t value, end;
char name[256], str_value[1024], type_str[256];
const char *type;
- int *event_flags;
+ int *event_flags
= NULL
;
AVChapter *chapter = NULL;
AVStream *st = NULL;
AVDictionary **metadata = NULL;
@@
-529,7
+529,8
@@
static int decode_info_header(NUTContext *nut)
}
if (metadata && av_strcasecmp(name, "Uses") &&
av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces")) {
- *event_flags |= metadata_flag;
+ if (event_flags)
+ *event_flags |= metadata_flag;
av_dict_set(metadata, name, str_value, 0);
}
}