mirror of https://git.ffmpeg.org/ffmpeg.git
Do not read strd chunk in avi files as H264 extradata.
Fixes ticket #2561.
This commit is contained in:
parent
4383e1b239
commit
231b331718
|
@ -713,7 +713,9 @@ static int avi_read_header(AVFormatContext *s)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MKTAG('s', 't', 'r', 'd'):
|
case MKTAG('s', 't', 'r', 'd'):
|
||||||
if (stream_index >= (unsigned)s->nb_streams || s->streams[stream_index]->codec->extradata_size) {
|
if (stream_index >= (unsigned)s->nb_streams
|
||||||
|
|| s->streams[stream_index]->codec->extradata_size
|
||||||
|
|| s->streams[stream_index]->codec->codec_tag == MKTAG('H','2','6','4')) {
|
||||||
avio_skip(pb, size);
|
avio_skip(pb, size);
|
||||||
} else {
|
} else {
|
||||||
uint64_t cur_pos = avio_tell(pb);
|
uint64_t cur_pos = avio_tell(pb);
|
||||||
|
|
Loading…
Reference in New Issue