[FFmpeg-devel] [PATCH 5/8] avcodec/flicvideo: Optimize and Simplify FLI_COPY in flic_decode_frame_24BPP() by using bytestream2_get_buffer()

Michael Niedermayer michael at niedermayer.cc
Wed Aug 14 20:42:28 EEST 2019


On Wed, Aug 14, 2019 at 05:21:49PM +0200, Tomas Härdin wrote:
> 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

the input is about 240kbyte so 22sec is not great but thats what you get
copying large frames around


> 
> > -                    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

will apply

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- 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/20190814/49709aa2/attachment.sig>


More information about the ffmpeg-devel mailing list