summaryrefslogtreecommitdiff
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-17 16:51:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-17 18:40:15 +0100
commitc603f22683d85ce45909582fe12cdb4753f9f616 (patch)
tree49a4ad42d794a9adbf704c31093b9844da15b7f2 /libavutil/buffer.c
parente3be7b11592994139a9649d5750654ddfb4e7059 (diff)
downloadffmpeg-c603f22683d85ce45909582fe12cdb4753f9f616.tar.gz
avutil/get_pool: remove dead operations whichs result is never used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r--libavutil/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index 3475e57b4a..5c753abce5 100644
--- a/libavutil/buffer.c
+++ b/libavutil/buffer.c
@@ -242,7 +242,7 @@ static BufferPoolEntry *get_pool(AVBufferPool *pool)
BufferPoolEntry *cur = *(void * volatile *)&pool->pool, *last = NULL;
while (cur != last) {
- FFSWAP(BufferPoolEntry*, cur, last);
+ last = cur;
cur = avpriv_atomic_ptr_cas((void * volatile *)&pool->pool, last, NULL);
if (!cur)
return NULL;