Commit 8ff3d1cc authored by Michael Niedermayer's avatar Michael Niedermayer

escape130: make sure cliping is done on signed values.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4f79c7dd
...@@ -225,7 +225,7 @@ static int escape130_decode_frame(AVCodecContext *avctx, ...@@ -225,7 +225,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
{-1, 1, -1, -1}, {-1, 1, -1, -1},
{1, -1, -1, -1} }; {1, -1, -1, -1} };
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
y[i] = av_clip(y_base + offset_table[difference_selector] * y[i] = av_clip((int)y_base + offset_table[difference_selector] *
sign_table[sign_selector][i], 0, 63); sign_table[sign_selector][i], 0, 63);
} }
} else if (get_bits1(&gb)) { } else if (get_bits1(&gb)) {
......
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