[FFmpeg-cvslog] r25938 - trunk/libavcodec/imgconvert.c

Reimar Döffinger Reimar.Doeffinger
Sun Dec 12 17:32:14 CET 2010


On Sun, Dec 12, 2010 at 04:31:49PM +0100, stefano wrote:
> 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) {

IMO add an assert for align > 0 in av_image_alloc



More information about the ffmpeg-cvslog mailing list