projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try to improve font rendering on Windows by using freetype for pango/cairo.
[dcpomatic.git]
/
src
/
lib
/
image.cc
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index dffc00e0ea2ed6d1e101f1711035dd22bef9d67a..41582f307b30b23bce02603aad7c9f74bae1f6f0 100644
(file)
--- a/
src/lib/image.cc
+++ b/
src/lib/image.cc
@@
-106,6
+106,10
@@
Image::planes () const
throw PixelFormatError ("planes()", _pixel_format);
}
+ if (_pixel_format == AV_PIX_FMT_PAL8) {
+ return 2;
+ }
+
if ((d->flags & AV_PIX_FMT_FLAG_PLANAR) == 0) {
return 1;
}