[FFmpeg-cvslog] r30457 - trunk/libswscale/swscale-test.c

stefano subversion
Sat Jan 30 14:31:00 CET 2010


Author: stefano
Date: Sat Jan 30 14:31:00 2010
New Revision: 30457

Log:
Fix randomness of the swscale-test output.

See the thread:
Subject: [FFmpeg-devel] [RFC] Make swscale-test perform only one convertion
Date: Fri, 29 Jan 2010 01:52:23 +0100

Modified:
   trunk/libswscale/swscale-test.c

Modified: trunk/libswscale/swscale-test.c
==============================================================================
--- trunk/libswscale/swscale-test.c	Sat Jan 30 14:22:24 2010	(r30456)
+++ trunk/libswscale/swscale-test.c	Sat Jan 30 14:31:00 2010	(r30457)
@@ -106,9 +106,9 @@ static int doTest(uint8_t *ref[4], int r
          * prefer, as long as they're aligned enough for the architecture, and
          * they're freed appropriately (such as using av_free for buffers
          * allocated with av_malloc). */
-        src[i]= av_malloc(srcStride[i]*srcH);
-        dst[i]= av_malloc(dstStride[i]*dstH);
-        out[i]= av_malloc(refStride[i]*h);
+        src[i]= av_mallocz(srcStride[i]*srcH);
+        dst[i]= av_mallocz(dstStride[i]*dstH);
+        out[i]= av_mallocz(refStride[i]*h);
         if (!src[i] || !dst[i] || !out[i]) {
             perror("Malloc");
             res = -1;



More information about the ffmpeg-cvslog mailing list