diff options
Diffstat (limited to 'src/lib/image.cc')
| -rw-r--r-- | src/lib/image.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index dffc00e0e..41582f307 100644 --- 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; } |
