changeset 31802:ee06f753ae93

swscale-test: merge declaration and initialization
author ramiro
date Sat, 31 Jul 2010 22:02:55 +0000
parents 8187612b1af8
children 53145096892e
files libswscale/swscale-test.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-test.c	Sat Jul 31 16:55:57 2010 +0000
+++ b/libswscale/swscale-test.c	Sat Jul 31 22:02:55 2010 +0000
@@ -82,9 +82,8 @@
     int i;
     uint64_t ssdY, ssdU=0, ssdV=0, ssdA=0;
     struct SwsContext *dstContext = NULL, *outContext = NULL;
-    int res;
+    int res = 0;
 
-    res = 0;
     for (i=0; i<4; i++) {
         // avoid stride % bpp != 0
         if (dstFormat==PIX_FMT_RGB24 || dstFormat==PIX_FMT_BGR24)