diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 18:20:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 10:04:51 +0200 |
commit | 75b21eb8f8c9aa16f40271b7e758f80ccb06f238 (patch) | |
tree | 629eeef3e5acf7ad8ad6200c07a1e77d3c30a178 | |
parent | 1933fa5daadf064b22d2c5b2912f35af85e47d9b (diff) | |
download | ffmpeg-75b21eb8f8c9aa16f40271b7e758f80ccb06f238.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 6808f35366..38c9851f06 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -524,6 +524,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)); |