} else
gopSize++;
if (bi == null)
bi = new BufferedImage(pic.getWidth(), pic.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
if (rgb == null)
<BUG>rgb = Picture.create(pic.getWidth(), pic.getHeight(), RGB);

transform.transform(pic.toPicture(8), rgb);
AWTUtil.toBufferedImage(rgb, bi);
</BUG>
int framePresentationIndex = (pic.getPOC() >> 1) + prevGopsSize;

} else
gopSize++;
if (bi == null)
bi = new BufferedImage(pic.getWidth(), pic.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
if (rgb == null)
rgb = Picture8Bit.create(pic.getWidth(), pic.getHeight(), RGB);
transform.transform(pic, rgb);
rgbToBgr.transform(rgb, rgb);
AWTUtil.toBufferedImage8Bit(rgb, bi);
int framePresentationIndex = (pic.getPOC() >> 1) + prevGopsSize;
