Fix bug introduced by me in r28756
authorsdrik <sdrik@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 5 Mar 2009 21:02:33 +0000 (21:02 +0000)
committersdrik <sdrik@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 5 Mar 2009 21:02:33 +0000 (21:02 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@28825 b3059339-0415-0410-9bf9-f77b7e298cf2

libswscale/swscale.c

index 7c335f1..c0f4b97 100644 (file)
@@ -922,7 +922,7 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
     switch(c->dstFormat){
     case PIX_FMT_ARGB:
         dest++;
-        aidx= -1;
+        aidx= 0;
     case PIX_FMT_RGB24:
         aidx--;
     case PIX_FMT_RGBA:
@@ -936,7 +936,7 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
         break;
     case PIX_FMT_ABGR:
         dest++;
-        aidx= -1;
+        aidx= 0;
     case PIX_FMT_BGR24:
         aidx--;
     case PIX_FMT_BGRA: