changeset 8744:9e7d7122a421 libavcodec

don't assume quant_matrix[0]==8 in ff_mpeg1_decode_block_intra(). this is required for the Electronic Arts TQI decoder.
author pross
date Thu, 05 Feb 2009 07:59:11 +0000
parents 92f032e1f9e1
children 9833a42260fc
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Thu Feb 05 07:57:11 2009 +0000
+++ b/mpeg12.c	Thu Feb 05 07:59:11 2009 +0000
@@ -630,7 +630,7 @@
     dc = s->last_dc[component];
     dc += diff;
     s->last_dc[component] = dc;
-    block[0] = dc<<3;
+    block[0] = dc*quant_matrix[0];
     dprintf(s->avctx, "dc=%d diff=%d\n", dc, diff);
     i = 0;
     {