git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
053e755
)
fixed the bpp 3 bug reported by Amartyo Banerjee.
author
uid68734
<uid68734>
Sat, 27 Dec 2003 19:53:37 +0000
(19:53 +0000)
committer
uid68734
<uid68734>
Sat, 27 Dec 2003 19:53:37 +0000
(19:53 +0000)
avi2swf/avi2swf.cc
patch
|
blob
|
history
diff --git
a/avi2swf/avi2swf.cc
b/avi2swf/avi2swf.cc
index
29d65af
..
8905a32
100644
(file)
--- a/
avi2swf/avi2swf.cc
+++ b/
avi2swf/avi2swf.cc
@@
-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;