On Wed, Oct 20, 2021 at 01:33:57PM -0400, Leo Izen wrote: [...] > --- a/libavformat/img2dec.c > +++ b/libavformat/img2dec.c > @@ -830,6 +830,16 @@ static int jpegls_probe(const AVProbeData *p) > return 0; > } > > +static int jpegxl_probe(const AVProbeData *p) > +{ > + const uint8_t *b = p->buf; > + > + if (AV_RB16(b) == 0xff0a || > + AV_RB64(b) == 0x0000000c4a584c20) > + return AVPROBE_SCORE_EXTENSION + 1; > + return 0; > +}
only 16bit for detection is a bit weak thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Rewriting code that is poorly written but fully understood is good. Rewriting code that one doesnt understand is a sign that one is less smart than the original author, trying to rewrite it will not make it better.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".