[FFmpeg-cvslog] r30373 - trunk/libswscale/swscale-example.c
ramiro
subversion
Tue Jan 19 16:42:52 CET 2010
Author: ramiro
Date: Tue Jan 19 16:42:51 2010
New Revision: 30373
Log:
swscale-example: Add comment about the use of av_{malloc,free}.
Modified:
trunk/libswscale/swscale-example.c
Modified: trunk/libswscale/swscale-example.c
==============================================================================
--- trunk/libswscale/swscale-example.c Tue Jan 19 14:35:57 2010 (r30372)
+++ trunk/libswscale/swscale-example.c Tue Jan 19 16:42:51 2010 (r30373)
@@ -102,6 +102,10 @@ static int doTest(uint8_t *ref[4], int r
else
dstStride[i]= dstW*4;
+ /* Image buffers passed into libswscale can be allocated any way you
+ * 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);
More information about the ffmpeg-cvslog
mailing list