aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-12 18:20:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-12 18:20:23 +0200
commit56abf35151c635caa3eb04bbb90454bae5463a09 (patch)
tree298566005dd0a859345a7ab477549b9907ab0c7d
parenta23379a0a68a6dd9a0e0d583e11b0c6f9b33f9ae (diff)
downloadffmpeg-56abf35151c635caa3eb04bbb90454bae5463a09.tar.gz
avformat/nutdec: Fix use of uinitialized value
Fixes CID1041175 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/nutdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 467dc5b867..9c017e04ab 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));