# HG changeset patch # User michael # Date 1066142436 0 # Node ID 75e061728d92c99cf1827726f07df31d6e1b4dfc # Parent 72ce51cc72c21ee8c5d3d770552957978cd56547 recommit of * fixing an unitilaized field AVImageInfo::interleaved. As a matter of fact we have two problems here: first AVImageInfo::interleaved is never initialzed in img.c. The second problem is that even if we want interleaved PNGs there's a bug in png.c that prevents us from generating them. The later problem is for somebody familiar with PNG to handle. And yes, always setting AVImageInfo::interleaved to 0 isn't such a good idea, but it still beats garbage values. orginal commit by roman shaposhnik diff -r 72ce51cc72c2 -r 75e061728d92 img.c --- a/img.c Tue Oct 14 14:13:57 2003 +0000 +++ b/img.c Tue Oct 14 14:40:36 2003 +0000 @@ -329,6 +329,7 @@ info.width = width; info.height = height; info.pix_fmt = st->codec.pix_fmt; + info.interleaved = 0; /* FIXME: there should be a way to set it right */ info.pict = *picture; ret = av_write_image(pb, img->img_fmt, &info); if (!img->is_pipe) {