Browse Source

avformat/nutdec: Fix use of uinitialized value

Fixes CID1041175

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 56abf35151)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4.10
Michael Niedermayer 10 years ago
parent
commit
7c4e3ddda1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/nutdec.c

+ 2
- 0
libavformat/nutdec.c View File

@@ -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));


Loading…
Cancel
Save