diff options
author | Vesselin Bontchev <vesselin.bontchev@yandex.com> | 2015-09-10 08:59:56 +0200 |
---|---|---|
committer | Vesselin Bontchev <vesselin.bontchev@yandex.com> | 2015-09-10 09:06:13 +0200 |
commit | 8e28e0721c61cface6496fe4657ff5d3c3d2e6b8 (patch) | |
tree | 5f98463e61950a48b3ff7734deb2f22bd71fd914 /libavformat | |
parent | bbc8fcae1dd9f158d92d4b1687153bb0605cf2b3 (diff) | |
download | ffmpeg-8e28e0721c61cface6496fe4657ff5d3c3d2e6b8.tar.gz |
avformat/aa: initialize "header_seed" and "header_key"
Fixes CID 1322364, CID 1322363
Signed-off-by: Vesselin Bontchev <vesselin.bontchev@yandex.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aadec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/aadec.c b/libavformat/aadec.c index ba700d5168..266a8e85ac 100644 --- a/libavformat/aadec.c +++ b/libavformat/aadec.c @@ -65,7 +65,7 @@ static int get_second_size(char *codec_name) static int aa_read_header(AVFormatContext *s) { 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}; uint8_t output[24], dst[8], src[8]; int64_t largest_size = -1, current_size = -1; @@ -74,7 +74,7 @@ static int aa_read_header(AVFormatContext *s) uint32_t size; } TOC[MAX_TOC_ENTRIES]; uint32_t header_key_part[4]; - uint8_t header_key[16]; + uint8_t header_key[16] = {0}; AADemuxContext *c = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; |