[FFmpeg-devel] [PATCH 2/2] swscale/tests/swscale: use codes < 128 for indicating erros

Michael Niedermayer michael at niedermayer.cc
Thu Jul 16 10:27:28 EEST 2020


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libswscale/tests/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index 845ced61bb..9c0b5a4b11 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -248,7 +248,7 @@ end:
         if (dstStride[i])
             av_free(dst[i]);
 
-    return res;
+    return res & 127;
 }
 
 static void selfTest(const uint8_t * const ref[4], int refStride[4],
-- 
2.17.1



More information about the ffmpeg-devel mailing list