mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
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>
This commit is contained in:
parent
1933fa5daa
commit
75b21eb8f8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user