From b6255f2560be5c01f2a5d86332e815657e551376 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sun, 24 Aug 2008 15:16:23 +0200 Subject: [PATCH] png comes with an alpha plane (RV32 isn't assumed to have a usable alpha plane in VLC). --- modules/codec/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/png.c b/modules/codec/png.c index 6cc2a2f6b6..bac19f5af8 100644 --- a/modules/codec/png.c +++ b/modules/codec/png.c @@ -83,7 +83,7 @@ static int OpenDecoder( vlc_object_t *p_this ) /* Set output properties */ p_dec->fmt_out.i_cat = VIDEO_ES; - p_dec->fmt_out.i_codec = VLC_FOURCC('R','V','3','2'); + p_dec->fmt_out.i_codec = VLC_FOURCC('R','G','B','A'); /* Set callbacks */ p_dec->pf_decode_video = DecodeBlock; @@ -178,7 +178,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) if( p_sys->b_error ) goto error; /* Set output properties */ - p_dec->fmt_out.i_codec = VLC_FOURCC('R','V','3','2'); + p_dec->fmt_out.i_codec = VLC_FOURCC('R','G','B','A'); p_dec->fmt_out.video.i_width = i_width; p_dec->fmt_out.video.i_height = i_height; p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR * i_width / i_height; -- 2.39.2