mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
9e34adfc02
commit
4f11bed7a1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user