summaryrefslogtreecommitdiff
path: root/vp8/encoder/encodeframe.c
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2012-08-20 17:31:44 -0700
committerYunqing Wang <yunqingwang@google.com>2012-08-20 17:43:06 -0700
commit8ee88da060140df61d937e633f718637a298f1fc (patch)
tree2770f75a21d82067cb82ddd8f3c2a32ad92681f1 /vp8/encoder/encodeframe.c
parentb0cfcb2ca875eeab1188e405a6980726ffa9b8b9 (diff)
downloadlibvpx-8ee88da060140df61d937e633f718637a298f1fc.tar
libvpx-8ee88da060140df61d937e633f718637a298f1fc.tar.gz
libvpx-8ee88da060140df61d937e633f718637a298f1fc.tar.bz2
libvpx-8ee88da060140df61d937e633f718637a298f1fc.zip
Fix inter_zz_count calculation bug
The current way of counting inter_zz_count doesn't work correctly in multi-threaded encoding. Calculating it after the frame is encoded fixed the problem. Change-Id: Ifcb1972cde950b8cc194f75c6d7b6af09e8b0e65
Diffstat (limited to 'vp8/encoder/encodeframe.c')
-rw-r--r--vp8/encoder/encodeframe.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c
index 4d73d470f..600e815dd 100644
--- a/vp8/encoder/encodeframe.c
+++ b/vp8/encoder/encodeframe.c
@@ -523,10 +523,6 @@ void encode_mb_row(VP8_COMP *cpi,
#endif
- /* Count of last ref frame 0,0 usage */
- if ((xd->mode_info_context->mbmi.mode == ZEROMV) && (xd->mode_info_context->mbmi.ref_frame == LAST_FRAME))
- cpi->inter_zz_count ++;
-
/* Special case code for cyclic refresh
* If cyclic update enabled then copy xd->mbmi.segment_id; (which
* may have been updated based on mode during
@@ -721,9 +717,6 @@ void vp8_encode_frame(VP8_COMP *cpi)
xd->subpixel_predict16x16 = vp8_bilinear_predict16x16;
}
- /* Reset frame count of inter 0,0 motion vector usage. */
- cpi->inter_zz_count = 0;
-
cpi->prediction_error = 0;
cpi->intra_error = 0;
cpi->skip_true_count = 0;