From 6997e6a7ab8ade12d1298d4a38ec1c155da02f16 Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Wed, 26 Mar 2003 23:45:58 +0000 Subject: ignore alpha channel in images CVS patchset: 4494 CVS date: 2003/03/26 23:45:58 --- src/libxinevdec/image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c index 6e085d8f1..846850bf3 100644 --- a/src/libxinevdec/image.c +++ b/src/libxinevdec/image.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: image.c,v 1.1 2003/03/23 17:12:30 holstsn Exp $ + * $Id: image.c,v 1.2 2003/03/26 23:45:58 holstsn Exp $ * * a image video decoder */ @@ -154,6 +154,8 @@ void info_callback(png_structp png_ptr, png_infop info_ptr) { if (this->color_type == PNG_COLOR_TYPE_GRAY || this->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) png_set_gray_to_rgb(png_ptr); + if (this->color_type & PNG_COLOR_MASK_ALPHA) + png_set_strip_alpha(png_ptr); /* we'll let libpng expand interlaced images, too */ -- cgit v1.2.3