diff options
author | Ronald S. Bultje <rbultje@google.com> | 2012-04-30 16:32:12 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2012-04-30 16:33:07 -0700 |
commit | 0f68789c249e1a69f3c4cc28a63ceb31f0fe2c35 (patch) | |
tree | 51ba04534f30db15e1223586bd09a958a230b3f2 | |
parent | c0d595134edaccb7db1ff436ef3f09ebb69f9a6f (diff) | |
download | libvpx-0f68789c249e1a69f3c4cc28a63ceb31f0fe2c35.tar libvpx-0f68789c249e1a69f3c4cc28a63ceb31f0fe2c35.tar.gz libvpx-0f68789c249e1a69f3c4cc28a63ceb31f0fe2c35.tar.bz2 libvpx-0f68789c249e1a69f3c4cc28a63ceb31f0fe2c35.zip |
Fix inversion of probability and value in calls to vp8_cost_bit().
Change-Id: I9f1686249ac812f7b9b872eabe3970d1dfb25e56
-rw-r--r-- | vp8/encoder/rdopt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c index 1099ac243..922235ed0 100644 --- a/vp8/encoder/rdopt.c +++ b/vp8/encoder/rdopt.c @@ -2597,19 +2597,19 @@ void vp8_estimate_ref_frame_costs(VP8_COMP *cpi, unsigned int * ref_costs ) if ( ! pred_flag ) { if ( mod_refprobs[0] ) - cost += vp8_cost_bit( (i != INTRA_FRAME), mod_refprobs[0] ); + cost += vp8_cost_bit( mod_refprobs[0], (i != INTRA_FRAME) ); // Inter coded if (i != INTRA_FRAME) { if ( mod_refprobs[1] ) - cost += vp8_cost_bit( (i != LAST_FRAME), mod_refprobs[1] ); + cost += vp8_cost_bit( mod_refprobs[1], (i != LAST_FRAME) ); if (i != LAST_FRAME) { if ( mod_refprobs[2] ) - cost += vp8_cost_bit( (i != GOLDEN_FRAME), - mod_refprobs[2] ); + cost += vp8_cost_bit( mod_refprobs[2], + (i != GOLDEN_FRAME)); } } } |