fixed the bpp 3 bug reported by Amartyo Banerjee.
authoruid68734 <uid68734>
Sat, 27 Dec 2003 19:53:37 +0000 (19:53 +0000)
committeruid68734 <uid68734>
Sat, 27 Dec 2003 19:53:37 +0000 (19:53 +0000)
avi2swf/avi2swf.cc

index 29d65af..8905a32 100644 (file)
@@ -305,9 +305,7 @@ int videoreader_avifile_getimage(videoreader_t* v, void*buffer)
     img->ToYUV();
     img->ToRGB();
     if(img->Bpp() != 3) {
-       /* TODO: this doesn't work yet */
-       if(verbose) printf("Can't handle Bpp %d, shutting down...\n", img->Bpp());
-       return 0;
+       if(verbose) printf("Warning: converthing from bpp %d to bpp 3, this fails on older avifile versions...\n", img->Bpp());
        BitmapInfo tmp(v->width, v->height, 24);
        img2 = new CImage(img, &tmp);
        img = img2;