diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 9223781affa36b9e0db0d8741a0c9112f6abd60c..8415ac6e2c26b7d1e93f2505634cc2f100d10c45 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4706,8 +4706,8 @@ int vp8_get_compressed_data(VP8_COMP *cpi, unsigned int *frame_flags, unsigned l
 
     if (cpi->source)
     {
-        cpi->un_scaled_source =
         cpi->Source = force_src_buffer ? force_src_buffer : &cpi->source->img;
+        cpi->un_scaled_source = cpi->Source;
         *time_stamp = cpi->source->ts_start;
         *time_end = cpi->source->ts_end;
         *frame_flags = cpi->source->flags;