Fix get_frame_type function

Fixed the function get_frame_type to return the correct
frame type for golden and last frames.

Change-Id: I8edddd9aa26cbe7a1de8ff211389410b22b1bd14
This commit is contained in:
Adrian Grange 2014-07-22 12:12:16 -07:00
parent 018fd12cf6
commit caad1686d4

View File

@ -2362,9 +2362,9 @@ static MV_REFERENCE_FRAME get_frame_type(const VP9_COMP *cpi) {
else if (cpi->rc.is_src_frame_alt_ref && cpi->refresh_golden_frame)
return ALTREF_FRAME;
else if (cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame)
return LAST_FRAME;
else
return GOLDEN_FRAME;
else
return LAST_FRAME;
}
static TX_MODE select_tx_mode(const VP9_COMP *cpi) {