]> granicus.if.org Git - libvpx/commitdiff
Fix get_frame_type function
authorAdrian Grange <agrange@google.com>
Tue, 22 Jul 2014 19:12:16 +0000 (12:12 -0700)
committerAdrian Grange <agrange@google.com>
Tue, 22 Jul 2014 19:12:16 +0000 (12:12 -0700)
Fixed the function get_frame_type to return the correct
frame type for golden and last frames.

Change-Id: I8edddd9aa26cbe7a1de8ff211389410b22b1bd14

vp9/encoder/vp9_encodeframe.c

index c43ef5b38cd9ed259fd6f7ab24de0a041ec3c2c4..86de690939b75ee6e2fc923f033578afebfb2a32 100644 (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) {