[FFmpeg-cvslog] r25938 - trunk/libavcodec/imgconvert.c
stefano
subversion
Sun Dec 12 16:31:49 CET 2010
Author: stefano
Date: Sun Dec 12 16:31:49 2010
New Revision: 25938
Log:
Fix avpicture_alloc(), which was aligning the linesizes with 0 and thus
causing a wrong allocation.
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Sun Dec 12 14:39:21 2010 (r25937)
+++ trunk/libavcodec/imgconvert.c Sun Dec 12 16:31:49 2010 (r25938)
@@ -815,7 +815,7 @@ int avpicture_alloc(AVPicture *picture,
{
int ret;
- if ((ret = av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 0)) < 0) {
+ if ((ret = av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 1)) < 0) {
memset(picture, 0, sizeof(AVPicture));
return ret;
}
More information about the ffmpeg-cvslog
mailing list