dfxvideo: use stricter alignment check
authornotaz <notasas@gmail.com>
Mon, 27 Feb 2012 23:48:30 +0000 (01:48 +0200)
committernotaz <notasas@gmail.com>
Mon, 27 Feb 2012 23:50:23 +0000 (01:50 +0200)
for pre-ARMv6 mostly

plugins/dfxvideo/prim.c

index a27602a..7a71d4c 100644 (file)
@@ -575,7 +575,7 @@ static void primMoveImage(unsigned char * baseAddr)
    return;
   }
  
- if(imageSX&1)                                         // not dword aligned? slower func
+ if((imageSX|imageX0|imageX1)&1)                       // not dword aligned? slower func
   {
    unsigned short *SRCPtr, *DSTPtr;
    unsigned short LineOffset;