Commit 4ba22e04 authored by Stefano Sabatini's avatar Stefano Sabatini

Fix avpicture_alloc(), which was aligning the linesizes with 0 and thus

causing a wrong allocation.

Originally committed as revision 25938 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1ebe5c4c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment