mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
avformat/nutdec: always initialize event_flags
Fixes: CID1231990 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7caacc50ae
commit
05dd5368a9
@ -484,7 +484,7 @@ static int decode_info_header(NUTContext *nut)
|
|||||||
int64_t value, end;
|
int64_t value, end;
|
||||||
char name[256], str_value[1024], type_str[256];
|
char name[256], str_value[1024], type_str[256];
|
||||||
const char *type;
|
const char *type;
|
||||||
int *event_flags;
|
int *event_flags = NULL;
|
||||||
AVChapter *chapter = NULL;
|
AVChapter *chapter = NULL;
|
||||||
AVStream *st = NULL;
|
AVStream *st = NULL;
|
||||||
AVDictionary **metadata = NULL;
|
AVDictionary **metadata = NULL;
|
||||||
@ -560,7 +560,8 @@ static int decode_info_header(NUTContext *nut)
|
|||||||
|
|
||||||
if (metadata && av_strcasecmp(name, "Uses") &&
|
if (metadata && av_strcasecmp(name, "Uses") &&
|
||||||
av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces")) {
|
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);
|
av_dict_set(metadata, name, str_value, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user