[FFmpeg-cvslog] Store pointers in a less messy way in SWSContext.

Reimar Döffinger git at videolan.org
Sat May 7 20:15:00 CEST 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat May  7 20:06:33 2011 +0200| [80264dc4222312d563053cb677f7c2cb0e4c0935] | committer: Reimar Döffinger

Store pointers in a less messy way in SWSContext.

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

 libswscale/swscale_template.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index cfe8e4c..f3fe83f 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -1233,8 +1233,8 @@ static inline void RENAME(yuv2packed2)(SwsContext *c, const uint16_t *buf0, cons
                     : "%r8"
                 );
 #else
-                *(const uint16_t **)(&c->u_temp)=abuf0;
-                *(const uint16_t **)(&c->v_temp)=abuf1;
+                c->u_temp=(intptr_t)abuf0;
+                c->v_temp=(intptr_t)abuf1;
                 __asm__ volatile(
                     "mov %%"REG_b", "ESP_OFFSET"(%5)        \n\t"
                     "mov        %4, %%"REG_b"               \n\t"



More information about the ffmpeg-cvslog mailing list