]> granicus.if.org Git - libvpx/commitdiff
Pick up correct dequant for segment with new-quant.
authorGeza Lore <gezalore@gmail.com>
Tue, 14 Jun 2016 15:47:06 +0000 (16:47 +0100)
committerGeza Lore <gezalore@gmail.com>
Tue, 14 Jun 2016 15:47:17 +0000 (16:47 +0100)
Change-Id: Id73500305a7cc581c11461c9ddb1b22dd8f5d8f4

vp10/decoder/detokenize.c

index 000b30b36eaaa731e20bf7bf7d27c411acc2ac32..63f70692fea8ba43d55ec2f77d815c4bf59f69b5 100644 (file)
@@ -511,7 +511,7 @@ int vp10_decode_block_tokens(MACROBLOCKD *const xd,
                                pd->dqcoeff, tx_size, tx_type,
                                dequant,
 #if CONFIG_NEW_QUANT
-                               pd->seg_dequant_nuq[0],
+                               pd->seg_dequant_nuq[seg_id],
 #endif  // CONFIG_NEW_QUANT
                                ctx, sc->scan, sc->neighbors, r);
 #else
@@ -519,7 +519,7 @@ int vp10_decode_block_tokens(MACROBLOCKD *const xd,
                                    pd->dqcoeff, tx_size, tx_type,
                                    dequant,
 #if CONFIG_NEW_QUANT
-                                   pd->seg_dequant_nuq[0],
+                                   pd->seg_dequant_nuq[seg_id],
 #endif  // CONFIG_NEW_QUANT
                                    ctx, sc->scan, sc->neighbors, r);
 #endif  // !CONFIG_ANS