Browse Source

bgp: decode as RGB24 without a mask

This corresponds to the default RGB24M mask.
pull/162/head
Steve Lhomme 3 years ago
parent
commit
3c25d09d9a
  1. 3
      modules/codec/bpg.c

3
modules/codec/bpg.c

@ -120,8 +120,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
/* Set output properties */
p_dec->fmt_out.video.i_chroma =
p_dec->fmt_out.i_codec = VLC_CODEC_RGB24M;
video_format_FixRgb(&p_dec->fmt_out.video);
p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
p_dec->fmt_out.video.i_visible_width = p_dec->fmt_out.video.i_width = img_info.width;
p_dec->fmt_out.video.i_visible_height = p_dec->fmt_out.video.i_height = img_info.height;
p_dec->fmt_out.video.i_sar_num = 1;

Loading…
Cancel
Save