[FFmpeg-devel] [PATCH] avcodec/cbs_mpeg2: use memcpy when assembling fragments

James Almer jamrial at gmail.com
Wed Apr 25 22:51:06 EEST 2018


On 4/25/2018 4:35 PM, Michael Niedermayer wrote:
> On Mon, Apr 23, 2018 at 11:39:54PM -0300, James Almer wrote:
>> before:
>> 419022 decicycles in assemble_fragment,    2047 runs,      1 skips
>>
>> after:
>> 104621 decicycles in assemble_fragment,    2045 runs,      3 skips
>>
>> Benched with a 2 minutes long 720x480 DVD mpeg2 sample.
>>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>  libavcodec/cbs_mpeg2.c | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> LGTM
> thx

Pushed, thanks.


More information about the ffmpeg-devel mailing list