[FFmpeg-devel] [PATCH] avcodec/pngdec: Optimize has_trns code

Michael Niedermayer michael at niedermayer.cc
Mon Sep 2 19:45:27 EEST 2019


On Sun, Aug 18, 2019 at 10:29:02AM +0200, Michael Niedermayer wrote:
> add inner loop specialisations for 2 bpp and 4 bpp
> These are all cases for which i found testsamples.
> 
> 30M cycles -> 5M cycles
> 
> Testcase: fate-rgbapng-4816
> Testcase: 16097/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APNG_fuzzer-5664690889293824
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/pngdec.c | 37 +++++++++++++++++++++++++++++--------
>  1 file changed, 29 insertions(+), 8 deletions(-)

will apply

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190902/ae45d04f/attachment.sig>


More information about the ffmpeg-devel mailing list