]> git.sesse.net Git - ffmpeg/commit
libavutil: Use an intermediate variable in AV_COPY*U
authorMartin Storsjö <martin@martin.st>
Thu, 28 Jul 2016 11:30:25 +0000 (14:30 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 31 Jul 2016 19:50:55 +0000 (22:50 +0300)
commit014773b66bdff4de24f384066d1a85d2a5bb6774
tree89917984e48c1c2e84d11f2c3b32a3b30d3935b8
parent25bacd0a0c32ae682e6f411b1ac9020aeaabca72
libavutil: Use an intermediate variable in AV_COPY*U

If AV_RN and AV_WN are macros with multiple individual reads and
writes, the previous version of the AV_COPYU macro would fail if
the reads and writes overlap.

This should not be any less efficient in any case, given a
sensibly optimizing compiler.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/intreadwrite.h