[FFmpeg-devel] [PATCH v2 2/2] avformat: add demuxer for argonaut games' ASF format

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Jan 20 01:47:27 EET 2020


Am So., 19. Jan. 2020 um 23:44 Uhr schrieb Zane van Iperen
<zane at zanevaniperen.com>:
>
> 20/1/20 4:52 am, Carl Eugen Hoyos пишет:

> >> +    argo_asf_parse_file_header(&hdr, p->buf);
> >> +
> >> +    if(hdr.magic != ASF_TAG)
> >> +        return 0;
> >> +
> >> +    if (argo_asf_is_known_version(&hdr))
> >> +        score += 25;
> >
> > Return MAX/2 + 1 in this case, feel free to ignore the other fields.
>
> Isn't that still a relatively low score?

If (!) an mpeg stream succeeds with a higher score, it is most likely
correct not to detect argo_asf but feel free to add more checks.
Since you check nearly exclusively for zeros (except for the first 32 bits),
please don't make it >75.

Carl Eugen


More information about the ffmpeg-devel mailing list