Skip to content
Browse files

Fixed picking up the wrong Huffman table for the AC scan. Bummer!

  • Loading branch information...
1 parent ff5be64 commit 08b6bca11294a5f11406a343cacecbc2b16de305 Thomas Richter committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 marker/scan.cpp
View
4 marker/scan.cpp
@@ -47,7 +47,7 @@ the committee itself.
**
** Represents all data in a single scan, and hence is the SOS marker.
**
-** $Id: scan.cpp,v 1.78 2012-11-25 16:18:05 thor Exp $
+** $Id: scan.cpp,v 1.79 2013-01-05 13:30:27 thor Exp $
**
*/
@@ -1026,7 +1026,7 @@ class HuffmanDecoder *Scan::ACHuffmanDecoderOf(UBYTE idx) const
assert(idx < 4);
- t = m_pFrame->TablesOf()->FindACHuffmanTable(m_ucDCTable[idx],m_pFrame->ScanTypeOf(),m_pFrame->PrecisionOf(),
+ t = m_pFrame->TablesOf()->FindACHuffmanTable(m_ucACTable[idx],m_pFrame->ScanTypeOf(),m_pFrame->PrecisionOf(),
m_pFrame->HiddenPrecisionOf(),m_pFrame->TablesOf()->UseResiduals());
if (t == NULL)
JPG_THROW(OBJECT_DOESNT_EXIST,"Scan::ACHuffmanDecoderOf","requested AC Huffman coding table not defined");

0 comments on commit 08b6bca

Please sign in to comment.
Something went wrong with that request. Please try again.