diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-08-10 23:47:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-08-11 14:21:56 +0200 |
commit | 6d7e522103f3b36103f30329ea3ce152223f8329 (patch) | |
tree | 259f189b8b5e6d878764ceb9cc0e8a8e43edd857 | |
parent | 7a940a2112474b899e0617cf4e469ec06278be50 (diff) | |
download | ffmpeg-6d7e522103f3b36103f30329ea3ce152223f8329.tar.gz |
avcodec/agm: Mark fill_pixels() as av_always_inline
Speedup from 275sec to 142sec
Testcase: 24426/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5639724379930624
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/agm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/agm.c b/libavcodec/agm.c index bc9dfc02f3..19490c5456 100644 --- a/libavcodec/agm.c +++ b/libavcodec/agm.c @@ -591,7 +591,7 @@ static int decode_raw_intra_rgb(AVCodecContext *avctx, GetByteContext *gbyte, AV return 0; } -static int fill_pixels(uint8_t **y0, uint8_t **y1, +av_always_inline static int fill_pixels(uint8_t **y0, uint8_t **y1, uint8_t **u, uint8_t **v, int ylinesize, int ulinesize, int vlinesize, uint8_t *fill, |