You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/aa: initialize "header_seed" and "header_key"
Fixes CID 1322364, CID 1322363 Signed-off-by: Vesselin Bontchev <vesselin.bontchev@yandex.com>
This commit is contained in:
@@ -65,7 +65,7 @@ static int get_second_size(char *codec_name)
|
|||||||
static int aa_read_header(AVFormatContext *s)
|
static int aa_read_header(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
int i, j, idx, largest_idx = -1;
|
int i, j, idx, largest_idx = -1;
|
||||||
uint32_t nkey, nval, toc_size, npairs, header_seed, start;
|
uint32_t nkey, nval, toc_size, npairs, header_seed = 0, start;
|
||||||
char key[128], val[128], codec_name[64] = {0};
|
char key[128], val[128], codec_name[64] = {0};
|
||||||
uint8_t output[24], dst[8], src[8];
|
uint8_t output[24], dst[8], src[8];
|
||||||
int64_t largest_size = -1, current_size = -1;
|
int64_t largest_size = -1, current_size = -1;
|
||||||
@@ -74,7 +74,7 @@ static int aa_read_header(AVFormatContext *s)
|
|||||||
uint32_t size;
|
uint32_t size;
|
||||||
} TOC[MAX_TOC_ENTRIES];
|
} TOC[MAX_TOC_ENTRIES];
|
||||||
uint32_t header_key_part[4];
|
uint32_t header_key_part[4];
|
||||||
uint8_t header_key[16];
|
uint8_t header_key[16] = {0};
|
||||||
AADemuxContext *c = s->priv_data;
|
AADemuxContext *c = s->priv_data;
|
||||||
AVIOContext *pb = s->pb;
|
AVIOContext *pb = s->pb;
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
Reference in New Issue
Block a user