Mercurial > libavcodec.hg
comparison mpeg12.c @ 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 | 3eaabd9c4371 |
comparison
equal
deleted
inserted
replaced
8743:92f032e1f9e1 | 8744:9e7d7122a421 |
---|---|
628 if (diff >= 0xffff) | 628 if (diff >= 0xffff) |
629 return -1; | 629 return -1; |
630 dc = s->last_dc[component]; | 630 dc = s->last_dc[component]; |
631 dc += diff; | 631 dc += diff; |
632 s->last_dc[component] = dc; | 632 s->last_dc[component] = dc; |
633 block[0] = dc<<3; | 633 block[0] = dc*quant_matrix[0]; |
634 dprintf(s->avctx, "dc=%d diff=%d\n", dc, diff); | 634 dprintf(s->avctx, "dc=%d diff=%d\n", dc, diff); |
635 i = 0; | 635 i = 0; |
636 { | 636 { |
637 OPEN_READER(re, &s->gb); | 637 OPEN_READER(re, &s->gb); |
638 /* now quantify & encode AC coefficients */ | 638 /* now quantify & encode AC coefficients */ |