swscale/swscale: fix srcStride/srcSlice typo
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Apr 2014 23:55:08 +0000 (01:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Apr 2014 22:21:28 +0000 (00:21 +0200)
Fixes part of Ticket3466
Found by: Andrey_Karpov / PVS-Studio
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 14fa7fc6a81d5e59e05243cdc92108eab1b138ac)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale.c

index 2c9e3da..74b7940 100644 (file)
@@ -794,7 +794,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
     uint8_t *dst2[4];
     uint8_t *rgb0_tmp = NULL;
 
-    if (!srcSlice || !dstStride || !dst || !srcSlice) {
+    if (!srcStride || !dstStride || !dst || !srcSlice) {
         av_log(c, AV_LOG_ERROR, "One of the input parameters to sws_scale() is NULL, please check the calling code\n");
         return 0;
     }