SkCrabbyAvif: Remove explicit brand sniffing in IsAvif
This code was copied over from SkAvifCodec. While libavif fails
to parse truncated ftyp boxes, CrabbyAvif can detect truncated
ftyp boxes in a best effort basis. So that is superior to the
explicit substring sniffing we do in this wrapper. Remove the
code and rely on CrabbyAvif's sniffing instead.
Bug: b/323753814
Change-Id: Ib49e42da9f08c9a8144404e8b110108f74bf9a6f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/916816
Reviewed-by: Christopher Cameron <ccameron@google.com>
Commit-Queue: Vignesh Venkat <vigneshv@google.com>
1 file changed