Re: [FFmpeg-devel] [PATCH 1/3] cbs_h2645: Avoid memcpy when splitting fragment

2018-11-22 Thread Mark Thompson
On 21/11/18 18:34, Andreas Rheinhardt wrote: > Now memcpy is avoided for NAL units that don't contain 0x03 escape > characters. > > Improves performance of cbs_h2645_fragment_add_nals from 36940 > decicycles to 6364 decicycles based on 8 runs with a 5.1 Mb/s H.264 > sample (262144 runs each). > >

[FFmpeg-devel] [PATCH 1/3] cbs_h2645: Avoid memcpy when splitting fragment

2018-11-21 Thread Andreas Rheinhardt
Now memcpy is avoided for NAL units that don't contain 0x03 escape characters. Improves performance of cbs_h2645_fragment_add_nals from 36940 decicycles to 6364 decicycles based on 8 runs with a 5.1 Mb/s H.264 sample (262144 runs each). Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_h2645