[FFmpeg-devel] [PATCH 5/8] avcodec/flicvideo: Optimize and Simplify FLI_COPY in flic_decode_frame_24BPP() by using bytestream2_get_buffer()
Tomas Härdin
tjoppen at acc.umu.se
Wed Aug 14 18:21:49 EEST 2019
mån 2019-08-12 klockan 21:17 +0200 skrev Michael Niedermayer:
> Fixes: Timeout (31sec -> 22sec)
Is this a large test case? 22sec still sounds excessive
> - pixel_countdown = s->avctx->width;
> - pixel_ptr = 0;
> - while (pixel_countdown > 0) {
> - pixel = bytestream2_get_le24(&g2);
> - AV_WL24(&pixels[y_ptr + pixel_ptr], pixel);
> - pixel_ptr += 3;
> - pixel_countdown--;
> - }
> + bytestream2_get_buffer(&g2, pixels + y_ptr, 3*s-
> >avctx->width);
Looks OK
/Tomas
More information about the ffmpeg-devel
mailing list