diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 18:20:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-10 02:13:11 +0200 |
commit | 8ad873ed4e99380958e6a60016554876d96716a1 (patch) | |
tree | 49710c159b4e360c2a735bdcbf8dc6d5ed3b2f3e | |
parent | b470e21d61558be80c40dd47bfae85e7fe4a99e5 (diff) | |
download | ffmpeg-8ad873ed4e99380958e6a60016554876d96716a1.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 961f76ccd3..b1bbcb9ee5 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -501,6 +501,8 @@ static int decode_info_header(NUTContext *nut) for (i = 0; i < count; i++) { get_str(bc, name, sizeof(name)); value = get_s(bc); + str_value[0] = 0; + if (value == -1) { type = "UTF-8"; get_str(bc, str_value, sizeof(str_value)); |