libmix: Enable VP8 hardware thumbnail generation on Merrifield

BZ: 107110

Enable VP8 hardware thumbnail generation on Merrifield

Change-Id: I541d850dbf1d032cb7c4f87d1fa9af20a69bcb44
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/107236
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videodecoder/VideoDecoderVP8.cpp b/videodecoder/VideoDecoderVP8.cpp
index ea9270e..f5362f4 100644
--- a/videodecoder/VideoDecoderVP8.cpp
+++ b/videodecoder/VideoDecoderVP8.cpp
@@ -160,7 +160,7 @@
         return DECODE_SUCCESS;
     }
 
-    if (VP8_KEY_FRAME == data->codec_data->frame_type) {
+    if (VP8_KEY_FRAME == data->codec_data->frame_type && !mSizeChanged) {
         updateFormatInfo(data);
         if (mSizeChanged == true) {
             mSizeChanged = false;