[FFmpeg-devel] [PATCH 6/7] get_bits: change refill to RAD pattern

Christophe Gisquet christophe.gisquet at gmail.com
Wed Apr 15 11:08:09 EEST 2020


Hi,

Le mar. 14 avr. 2020 à 12:25, Christophe Gisquet
<christophe.gisquet at gmail.com> a écrit :
>      if (is_le)
> -        s->cache |= (cache_type)AV_RL_HALF(s->ptr) << s->bits_left;
> +        s->cache |= (cache_type)AV_RL_ALL(s->ptr) << s->bits_left;
>      else
> -        s->cache |= (cache_type)AV_RB_HALF(s->ptr) << (BITSTREAM_HBITS - s->bits_left);

After this, AV_R*_HALF becomes unused, so I'll update the patch to
remove them, in addition to any change asked/suggested during review.

-- 
Christophe


More information about the ffmpeg-devel mailing list