mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +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;
|
break;
|
||||||
case MKTAG('s', 't', 'r', 'd'):
|
case MKTAG('s', 't', 'r', 'd'):
|
||||||
|
st = s->streams[stream_index];
|
||||||
if (stream_index >= (unsigned)s->nb_streams || st->codec->extradata_size) {
|
if (stream_index >= (unsigned)s->nb_streams || st->codec->extradata_size) {
|
||||||
avio_skip(pb, size);
|
avio_skip(pb, size);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user