[vlc-devel] commit: png comes with an alpha plane (RV32 isn' t assumed to have a usable alpha plane in VLC). (Antoine Cellerier )

git version control git at videolan.org
Sun Aug 24 15:57:40 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Aug 24 15:16:23 2008 +0200| [b6255f2560be5c01f2a5d86332e815657e551376] | committer: Antoine Cellerier 

png comes with an alpha plane (RV32 isn't assumed to have a usable alpha plane in VLC).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6255f2560be5c01f2a5d86332e815657e551376
---

 modules/codec/png.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 6cc2a2f..bac19f5 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;




More information about the vlc-devel mailing list