shithub: libvpx

Download patch

ref: 5dcb2e3237bb46ba36867eeb2f9e1d4795c571b4
parent: 66d5757695fd3e66a20941759b47d88189fafdb5
parent: bcaf1d69ec8ba4a616464aeb7b58ec92b76cc42a
author: Yaowu Xu <yaowu@google.com>
date: Wed Jul 23 08:46:11 EDT 2014

Merge "Moved call to vp9_clear_system_state() to a proper location"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2685,6 +2685,9 @@
     cpi->last_end_time_stamp_seen = cpi->source->ts_start;
   }
 
+  // Clear down mmx registers
+  vp9_clear_system_state();
+
   // adjust frame rates based on timestamps given
   if (cm->show_frame) {
     adjust_frame_rate(cpi);
@@ -2698,9 +2701,6 @@
 
   // start with a 0 size frame
   *size = 0;
-
-  // Clear down mmx registers
-  vp9_clear_system_state();
 
   /* find a free buffer for the new frame, releasing the reference previously
    * held.
--