Browse Source

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
tags/n0.8
Stefano Sabatini 14 years ago
parent
commit
4ba22e044b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/imgconvert.c

+ 1
- 1
libavcodec/imgconvert.c View File

@@ -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;
}


Loading…
Cancel
Save