[FFmpeg-cvslog] swscale/swscale: fix srcStride/srcSlice typo

Michael Niedermayer git at videolan.org
Mon May 5 00:41:54 CEST 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 16 01:55:08 2014 +0200| [26becbcd2a15bd609b4da59c5aa7bbf61ccf64bd] | committer: Michael Niedermayer

swscale/swscale: fix srcStride/srcSlice typo

Fixes part of Ticket3466
Found by: Andrey_Karpov / PVS-Studio
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 14fa7fc6a81d5e59e05243cdc92108eab1b138ac)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26becbcd2a15bd609b4da59c5aa7bbf61ccf64bd
---

 libswscale/swscale.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f529331..4827aa6 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -922,7 +922,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;
     }



More information about the ffmpeg-cvslog mailing list