[FFmpeg-devel] [PATCH] utils.c: avoid FFSWAP of identical buffers

Jindrich Makovicka makovick
Mon Nov 10 13:55:09 CET 2008


the attached patch skips doing FFSWAP() if the buffers are actually
the same, to avoid useless copying and to suppress a "memcpy() with
overlapping src and dest" warning in Valgrind.

Jindrich Makovicka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.c.diff
Type: text/x-diff
Size: 436 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081110/79c82166/attachment.diff>

More information about the ffmpeg-devel mailing list