From: Carl Hetherington Date: Fri, 3 May 2019 14:00:19 +0000 (+0000) Subject: Fix "cannot handle pixel format 26 during make_transparent()" (part of #1545). X-Git-Tag: v2.14.1~6^2~1 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=46df210e1c25c3cdae664390efac8e60714ad635 Fix "cannot handle pixel format 26 during make_transparent()" (part of #1545). --- diff --git a/src/lib/image.cc b/src/lib/image.cc index 959eec5a5..d3b193e7b 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -469,7 +469,7 @@ Image::make_black () void Image::make_transparent () { - if (_pixel_format != AV_PIX_FMT_BGRA) { + if (_pixel_format != AV_PIX_FMT_BGRA && _pixel_format != AV_PIX_FMT_RGBA) { throw PixelFormatError ("make_transparent()", _pixel_format); }