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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-01-20 20:36:25 +01:00
parent 9e34adfc02
commit 4f11bed7a1

View File

@ -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 {