Commit 43cd33be authored by Paul B Mahol's avatar Paul B Mahol

avcodec/pixlet: fix undefined behaviour in postprocess_chroma

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e1b82719
......@@ -479,8 +479,8 @@ static void postprocess_chroma(AVFrame *frame, int w, int h, int depth)
int16_t *srcv = (int16_t *)frame->data[2];
ptrdiff_t strideu = frame->linesize[1] / 2;
ptrdiff_t stridev = frame->linesize[2] / 2;
const int add = 1 << (depth - 1);
const int shift = 16 - depth;
const unsigned add = 1 << (depth - 1);
const unsigned shift = 16 - depth;
int i, j;
for (j = 0; j < h; j++) {
......
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