[SCM] libav/experimental: Fix randomness of the swscale-test output.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:58:59 UTC 2013


The following commit has been merged in the experimental branch:
commit 7dac0c4379984568bc471f5e68eb3941e9dbc93f
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sat Jan 30 13:31:00 2010 +0000

    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
    
    Originally committed as revision 30457 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index a812ee5..887973a 100644
--- a/libswscale/swscale-test.c
+++ b/libswscale/swscale-test.c
@@ -106,9 +106,9 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h,
          * 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list