[FFmpeg-devel] [PATCH] av_samples_copy: always use memmove.

Michael Niedermayer michaelni at gmx.at
Fri Jul 13 20:10:00 CEST 2012


On Fri, Jul 13, 2012 at 08:00:37PM +0200, Nicolas George wrote:
> On any reasonable implementation, the cost of memmove over memcpy
> is a test to decide the direction. Doing the test and calling memcpy
> is just as expensive.

well its different for planar formats 1 vs many tests but
iam fine with the simpler code if you benchmarked/checked that at
least gnu libc memmove really uses a memcpy equivalent if it can

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120713/8de951bd/attachment.asc>


More information about the ffmpeg-devel mailing list