Mercurial > mplayer.hg
changeset 30415:3f9c8b7320a2
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
author | stefano |
---|---|
date | Sat, 30 Jan 2010 13:31:00 +0000 |
parents | e5abaf769020 |
children | b573c7c7173b |
files | libswscale/swscale-test.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale-test.c Sat Jan 30 13:22:24 2010 +0000 +++ b/libswscale/swscale-test.c Sat Jan 30 13:31:00 2010 +0000 @@ -106,9 +106,9 @@ * 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;