Browse Source

rtp/rawvid: use stdc_trailing_zeros()

pull/162/head
Rémi Denis-Courmont 3 years ago
parent
commit
e40f2973b5
  1. 3
      modules/codec/rtp-rawvid.c

3
modules/codec/rtp-rawvid.c

@ -24,6 +24,7 @@
#include <assert.h>
#include <errno.h>
#include <stdbit.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@ -847,7 +848,7 @@ static int Open(vlc_object_t *obj)
unsigned int bpmp = depth * spmp;
/* pixel group size equals LCM(depth * spmp, 8) bits */
sys->pgroup = bpmp >> ((bpmp % 8) ? vlc_ctz(bpmp) : 3);
sys->pgroup = bpmp >> ((bpmp % 8) ? stdc_trailing_zeros(bpmp) : 3);
sys->half_height_uv = half_height_uv;
sys->decode_line = format->line_cb;
sys->pic = NULL;

Loading…
Cancel
Save