[FFmpeg-devel] [PATCH 1/2] avcodec/agm: Mark fill_pixels() as av_always_inline

Paul B Mahol onemda at gmail.com
Tue Aug 11 11:45:46 EEST 2020


LGTM

On 8/11/20, Michael Niedermayer <michael at niedermayer.cc> wrote:
> Speedup from 275sec to 142sec
> Testcase:
> 24426/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5639724379930624
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/agm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
> --
> 2.17.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list