diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 6eb9ba6970..2adc860f32 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -792,11 +792,11 @@ static int read_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int for (i=0; i= maxpos) return AVERROR_INVALIDDATA; get_str(bc, name, sizeof(name)); - type = value = get_s(bc); + value = get_s(bc); if (value == -1) { get_str(bc, str_value, sizeof(str_value));