Mercurial > libavcodec.hg
comparison h264enc.c @ 11564:a9780299ef48 libavcodec
Fix likely typo in r15937.
author | cehoyos |
---|---|
date | Wed, 31 Mar 2010 14:13:49 +0000 |
parents | b94e1810ce4c |
children |
comparison
equal
deleted
inserted
replaced
11563:5111783be6ad | 11564:a9780299ef48 |
---|---|
182 //FIXME check that gcc inlines this (and optimizes intra & separate_dc stuff away) | 182 //FIXME check that gcc inlines this (and optimizes intra & separate_dc stuff away) |
183 static inline int quantize_c(DCTELEM *block, uint8_t *scantable, int qscale, | 183 static inline int quantize_c(DCTELEM *block, uint8_t *scantable, int qscale, |
184 int intra, int separate_dc) | 184 int intra, int separate_dc) |
185 { | 185 { |
186 int i; | 186 int i; |
187 const int * const quant_3Btable = quant_coeff[qscale]; | 187 const int * const quant_table = quant_coeff[qscale]; |
188 const int bias = intra ? (1 << QUANT_SHIFT) / 3 : (1 << QUANT_SHIFT) / 6; | 188 const int bias = intra ? (1 << QUANT_SHIFT) / 3 : (1 << QUANT_SHIFT) / 6; |
189 const unsigned int threshold1 = (1 << QUANT_SHIFT) - bias - 1; | 189 const unsigned int threshold1 = (1 << QUANT_SHIFT) - bias - 1; |
190 const unsigned int threshold2 = (threshold1 << 1); | 190 const unsigned int threshold2 = (threshold1 << 1); |
191 int last_non_zero; | 191 int last_non_zero; |
192 | 192 |