mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/argo_asf: bail if invalid tag
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
96907e84dd
commit
0476b6ee1e
@ -144,6 +144,9 @@ static int argo_asf_read_header(AVFormatContext *s)
|
||||
|
||||
argo_asf_parse_file_header(&asf->fhdr, buf);
|
||||
|
||||
if (asf->fhdr.magic != ASF_TAG)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (asf->fhdr.num_chunks == 0) {
|
||||
return AVERROR_INVALIDDATA;
|
||||
} else if (asf->fhdr.num_chunks > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user