ref: 1f58f9d09217d35d0d0901fe49965ef2014a53ce
parent: eb0c52bacaed9b35484bbd55865916e12a4fd6d7
author: Dmitry Kovalev <[email protected]>
date: Fri Apr 11 13:14:15 EDT 2014
Fixing error found by ioc. vp9/encoder/vp9_rdopt.c:3913:44: runtime error: index -1 out of bounds for type 'RefBuffer [3]'. Change-Id: Ic0ec755328853b359e3a1ee84d319589183e38b7
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3910,10 +3910,11 @@
// TODO(jingning, jkoleszar): scaling reference frame not supported for
// sub8x8 blocks.
- if (ref_frame > NONE && vp9_is_scaled(&cm->frame_refs[ref_frame - 1].sf))
+ if (ref_frame > INTRA_FRAME &&
+ vp9_is_scaled(&cm->frame_refs[ref_frame - 1].sf))
continue;
- if (second_ref_frame > NONE &&
+ if (second_ref_frame > INTRA_FRAME &&
vp9_is_scaled(&cm->frame_refs[second_ref_frame - 1].sf))
continue;