avcodec/utils: Optimize ff_color_frame() using memcpy()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 24 Dec 2018 00:14:51 +0000 (01:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 15:53:39 +0000 (17:53 +0200)
commit95e5396919b13a00264466b5d766f80f1a4f7fdc
tree70fe3e28f288d1c88d27bc1016b034e2bfdb73b4
parent3dce4d03d5a555bff2e11f97fb54701b22effeaf
avcodec/utils: Optimize ff_color_frame() using memcpy()

4650975 -> 4493240 dezicycles

This optimizes lines 2 and later. Line 1 still uses av_memcpy_backptr()
This change originally fixed ossfuzz 10790 but this is now fixed by other
optimizations already

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c