[FFmpeg-cvslog] avutil/get_pool: remove dead operations whichs result is never used.

Michael Niedermayer git at videolan.org
Sun Mar 17 21:10:43 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar 17 16:51:40 2013 +0100| [c603f22683d85ce45909582fe12cdb4753f9f616] | committer: Michael Niedermayer

avutil/get_pool: remove dead operations whichs result is never used.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c603f22683d85ce45909582fe12cdb4753f9f616
---

 libavutil/buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index 3475e57..5c753ab 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;



More information about the ffmpeg-cvslog mailing list