Commit 0b40153d authored by Kostya Shishkov's avatar Kostya Shishkov

tscc2: DCT output should not be clipped

This fixes decoding some TSCC2 files with large quantisers.
parent 775c4d36
...@@ -95,7 +95,7 @@ static av_cold int init_vlcs(TSCC2Context *c) ...@@ -95,7 +95,7 @@ static av_cold int init_vlcs(TSCC2Context *c)
OP(d3, 5 * ((s0) - (s1) + (s2)) - 2 * (s3)); \ OP(d3, 5 * ((s0) - (s1) + (s2)) - 2 * (s3)); \
#define COL_OP(a, b) a = b #define COL_OP(a, b) a = b
#define ROW_OP(a, b) a = av_clip_uint8((((b) + 0x20) >> 6) + 0x80) #define ROW_OP(a, b) a = (((b) + 0x20) >> 6) + 0x80
static void tscc2_idct4_put(int *in, int q[3], uint8_t *dst, int stride) static void tscc2_idct4_put(int *in, int q[3], uint8_t *dst, int stride)
{ {
......
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