Do not set linesize for palette data, it does not make sense and creates
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 19 Mar 2009 21:31:10 +0000 (21:31 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 19 Mar 2009 21:31:10 +0000 (21:31 +0000)
problems with following patch to fix linesize alignment.

Originally committed as revision 18046 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgconvert.c

index 432a8d0..f68105e 100644 (file)
@@ -614,7 +614,6 @@ int ff_fill_linesize(AVPicture *picture, int pix_fmt, int width)
     case PIX_FMT_BGR4_BYTE:
     case PIX_FMT_GRAY8:
         picture->linesize[0] = width;
-        picture->linesize[1] = 4;
         break;
     default:
         return -1;