History

Update correct macroblock quantize_b function ptrs

WIP: Fixing unsafe threading in VP8 encoder. Use the passed in macroblock instead of the macroblock located in cpi.

Scott LaVarnway committed 13 years ago

Commit cc91d651 parent 3a19eeb1 file · +4 −4Browse files

Unified · Split

vp8/encoder/encodeframe.c+4−4
@@ -1234,8 +1234,8 @@ int vp8cx_encode_inter_macroblock · 1233 unmodified lines
12341234 /* Are we using the fast quantizer for the mode selection? */
12351235 if(cpi->sf.use_fastquant_for_pick)
12361236 {
1237− cpi->mb.quantize_b = vp8_fast_quantize_b;
1238− cpi->mb.quantize_b_pair = vp8_fast_quantize_b_pair;
1237+ x->quantize_b = vp8_fast_quantize_b;
1238+ x->quantize_b_pair = vp8_fast_quantize_b_pair;
12391239
12401240 /* the fast quantizer does not use zbin_extra, so
12411241 * do not recalculate */
@@ -1247,8 +1247,8 @@ int vp8cx_encode_inter_macroblock · 5 unmodified lines
12471247 /* switch back to the regular quantizer for the encode */
12481248 if (cpi->sf.improved_quant)
12491249 {
1250− cpi->mb.quantize_b = vp8_regular_quantize_b;
1251− cpi->mb.quantize_b_pair = vp8_regular_quantize_b_pair;
1250+ x->quantize_b = vp8_regular_quantize_b;
1251+ x->quantize_b_pair = vp8_regular_quantize_b_pair;
12521252 }
12531253
12541254 /* restore cpi->zbin_mode_boost_enabled */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t