diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 18:20:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-01 23:25:20 +0200 |
commit | 7c4e3ddda17929516325c3816eb259cc4c70ebe1 (patch) | |
tree | d5f7029898c38ee23c4aff00ecf49e9240ec83a6 | |
parent | fbd9ab5967f6163d6e31c40934f86164b7b0f88c (diff) | |
download | ffmpeg-7c4e3ddda17929516325c3816eb259cc4c70ebe1.tar.gz |
avformat/nutdec: Fix use of uinitialized value
Fixes CID1041175
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 56abf35151c635caa3eb04bbb90454bae5463a09)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index d56c4a5287..6fff2bb132 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -540,6 +540,8 @@ static int decode_info_header(NUTContext *nut) return ret; } value = get_s(bc); + str_value[0] = 0; + if (value == -1) { type = "UTF-8"; get_str(bc, str_value, sizeof(str_value)); |