diff options
author | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-26 23:45:58 +0000 |
---|---|---|
committer | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-26 23:45:58 +0000 |
commit | 6997e6a7ab8ade12d1298d4a38ec1c155da02f16 (patch) | |
tree | a77fc70f02c0a74d42bb8d7db229b914edfe4c7b | |
parent | 747629c5df56f03ca14f3a0d7f8d0cb459f4e551 (diff) | |
download | xine-lib-6997e6a7ab8ade12d1298d4a38ec1c155da02f16.tar.gz xine-lib-6997e6a7ab8ade12d1298d4a38ec1c155da02f16.tar.bz2 |
ignore alpha channel in images
CVS patchset: 4494
CVS date: 2003/03/26 23:45:58
-rw-r--r-- | src/libxinevdec/image.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |