]> git.sesse.net Git - ffmpeg/commitdiff
avformat/argo_asf: don't check file version
authorZane van Iperen <zane@zanevaniperen.com>
Sun, 9 Aug 2020 22:37:47 +0000 (08:37 +1000)
committerZane van Iperen <zane@zanevaniperen.com>
Mon, 10 Aug 2020 22:50:26 +0000 (08:50 +1000)
It has no bearing on structure. Determined by looking at the ASF
files from several Argonaut games:
  - FX Fighter,
  - Croc,
  - Croc 2,
  - The Emperor's New Groove, and
  - Disney's Aladdin in Nasira's Revenge

The only versions that appear are 1.1, 1.2, and 2.1, and their
structure is identical.

Reviewed-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
libavformat/argo_asf.c

index 94d3ae3e091a83e5ca9ba794ef156daf404a3bd3..bb69b01ff451d69ddaf98a57807fa4587633bc19 100644 (file)
@@ -136,13 +136,6 @@ static int argo_asf_read_header(AVFormatContext *s)
 
     argo_asf_parse_file_header(&asf->fhdr, buf);
 
-    if (!argo_asf_is_known_version(&asf->fhdr)) {
-        avpriv_request_sample(s, "Version %hu.%hu",
-            asf->fhdr.version_major, asf->fhdr.version_minor
-        );
-        return AVERROR_PATCHWELCOME;
-    }
-
     if (asf->fhdr.num_chunks == 0) {
         return AVERROR_INVALIDDATA;
     } else if (asf->fhdr.num_chunks > 1) {