Commit b6255f25 authored by Antoine Cellerier's avatar Antoine Cellerier

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

parent a9a79036
...@@ -83,7 +83,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -83,7 +83,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Set output properties */ /* Set output properties */
p_dec->fmt_out.i_cat = VIDEO_ES; 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 */ /* Set callbacks */
p_dec->pf_decode_video = DecodeBlock; p_dec->pf_decode_video = DecodeBlock;
...@@ -178,7 +178,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -178,7 +178,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_sys->b_error ) goto error; if( p_sys->b_error ) goto error;
/* Set output properties */ /* 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_width = i_width;
p_dec->fmt_out.video.i_height = i_height; p_dec->fmt_out.video.i_height = i_height;
p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR * i_width / i_height; p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR * i_width / i_height;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment