diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-12 15:31:49 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-12 15:31:49 +0000 |
commit | 4ba22e044b42f30482346c2cfd991eaa80c1a62f (patch) | |
tree | 8297fa9b4f6fed3e11017c50cedbd7ba12261c3d /libavcodec/imgconvert.c | |
parent | 1ebe5c4c0b6fb2d5e85cd480036741af9955d3b9 (diff) | |
download | ffmpeg-4ba22e044b42f30482346c2cfd991eaa80c1a62f.tar.gz |
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
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 3c143613fd..6b0c049e2a 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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; } |