git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e3be7b1
)
avutil/get_pool: remove dead operations whichs result is never used.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Mar 2013 15:51:40 +0000
(16:51 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Mar 2013 17:40:15 +0000
(18:40 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/buffer.c
patch
|
blob
|
history
diff --git
a/libavutil/buffer.c
b/libavutil/buffer.c
index
3475e57
..
5c753ab
100644
(file)
--- 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;