Commit ddc0f812 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sepia: fix RGB indices on big endian

This probably never worked.
parent 6c11e8b1
......@@ -98,7 +98,7 @@ static inline int GetPackedRgbIndexes( const video_format_t *p_fmt, int *i_r_ind
return VLC_EGENERIC;
#ifdef WORDS_BIGENDIAN
const int i_mask_bits = p_fmt->i_chroma == VLC_CODEC_RGB24 ? 24 : 32;
const int i_mask_bits = p_fmt->i_chroma == VLC_CODEC_RGB24 ? 16 : 24;
*i_r_index = (i_mask_bits - vlc_ctz(p_fmt->i_rmask) / 8;
*i_g_index = (i_mask_bits - vlc_ctz(p_fmt->i_gmask) / 8;
*i_b_index = (i_mask_bits - vlc_ctz(p_fmt->i_bmask) / 8;
......
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