Commit 4f11bed7 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: fix "avidec.c:362: warning: st may be used uninitialized in this function"

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9e34adfc
......@@ -699,6 +699,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
break;
case MKTAG('s', 't', 'r', 'd'):
st = s->streams[stream_index];
if (stream_index >= (unsigned)s->nb_streams || st->codec->extradata_size) {
avio_skip(pb, size);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment