Fixed crash in VP8/CQTest
authorScott LaVarnway <slavarnway@google.com>
Wed, 5 Jun 2013 18:45:08 +0000 (14:45 -0400)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Wed, 5 Jun 2013 19:04:19 +0000 (12:04 -0700)
If the codec was configured with --enable-internal-stats,
a seg fault would occur.  This patch fixes the problem.

Change-Id: Id10a577973d185e93037c59e5b36bebdded327da

vp8/encoder/onyx_if.c

index 0892b06..3432f02 100644 (file)
@@ -5254,7 +5254,7 @@ int vp8_get_compressed_data(VP8_COMP *cpi, unsigned int *frame_flags, unsigned l
 
         if (cm->show_frame)
         {
-
+            cpi->common.show_frame_mi = cpi->common.mi;
             cpi->count ++;
 
             if (cpi->b_calculate_psnr)