In poly_gen_kernel and poly_next_frame you assume 16-bit encoding by using a uint16_t* to contain frame data and replacing the bit-depth with sizeof(uint16_t), which should likely instead be poly_format->bits / 8. Alternatively, you could remove the bit-depth parameter and assume 16-bit bit-depth.
In
poly_gen_kernel
andpoly_next_frame
you assume 16-bit encoding by using auint16_t*
to contain frame data and replacing the bit-depth withsizeof(uint16_t)
, which should likely instead bepoly_format->bits / 8
. Alternatively, you could remove the bit-depth parameter and assume 16-bit bit-depth.