[FFmpeg-cvslog] tscc2: DCT output should not be clipped

Kostya Shishkov git at videolan.org
Wed Jul 18 01:53:39 CEST 2012


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Mon Jul 16 20:14:37 2012 +0200| [0b40153d20ba80e842d288038a62c4dfdc5384a3] | committer: Kostya Shishkov

tscc2: DCT output should not be clipped

This fixes decoding some TSCC2 files with large quantisers.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b40153d20ba80e842d288038a62c4dfdc5384a3
---

 libavcodec/tscc2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c
index 7fd87fd..972dc43 100644
--- a/libavcodec/tscc2.c
+++ b/libavcodec/tscc2.c
@@ -95,7 +95,7 @@ static av_cold int init_vlcs(TSCC2Context *c)
     OP(d3, 5 * ((s0) - (s1) + (s2)) - 2 * (s3));  \
 
 #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)
 {



More information about the ffmpeg-cvslog mailing list