changeset 28790:b747efa600d8

Fix bug introduced by me in r28756
author sdrik
date Thu, 05 Mar 2009 21:02:33 +0000
parents a0ce88ba2557
children 4e4b39c8e25d
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Mar 05 20:47:33 2009 +0000
+++ b/libswscale/swscale.c	Thu Mar 05 21:02:33 2009 +0000
@@ -922,7 +922,7 @@
     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 @@
         break;
     case PIX_FMT_ABGR:
         dest++;
-        aidx= -1;
+        aidx= 0;
     case PIX_FMT_BGR24:
         aidx--;
     case PIX_FMT_BGRA: