summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-30 13:31:00 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-30 13:31:00 +0000
commitc84231c0376a16b11afebf3c3b1ef5149a154a55 (patch)
tree763b67903bb4cfdd334660f86fff4512af7cff9e /libswscale
parent1e4bf6639eb23c43c14618ace924f8ff6cae05ac (diff)
downloadmpv-c84231c0376a16b11afebf3c3b1ef5149a154a55.tar.bz2
mpv-c84231c0376a16b11afebf3c3b1ef5149a154a55.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30457 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index a812ee5963..887973a40e 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;