mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +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);
|
argo_asf_parse_file_header(&asf->fhdr, buf);
|
||||||
|
|
||||||
|
if (asf->fhdr.magic != ASF_TAG)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (asf->fhdr.num_chunks == 0) {
|
if (asf->fhdr.num_chunks == 0) {
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
} else if (asf->fhdr.num_chunks > 1) {
|
} else if (asf->fhdr.num_chunks > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user