refine DRC for WMV

BZ: 154291

if the  resolution change in the middle of WMV during playing,
update the video format in order to info the upper layer of the change

Change-Id: I6ad29d96c4d71478ddb7dc1d266c3dcd0ec3a580
Signed-off-by: ywan171 <yi.a.wang@intel.com>
diff --git a/videodecoder/VideoDecoderWMV.cpp b/videodecoder/VideoDecoderWMV.cpp
index 6b3f4fb..1017ad8 100644
--- a/videodecoder/VideoDecoderWMV.cpp
+++ b/videodecoder/VideoDecoderWMV.cpp
@@ -101,6 +101,18 @@
         CHECK_STATUS("startVA");
     }
 
+    if ((mVideoFormatInfo.width != data->se_data->CODED_WIDTH ||
+        mVideoFormatInfo.height != data->se_data->CODED_HEIGHT) &&
+        data->se_data->CODED_WIDTH &&
+        data->se_data->CODED_HEIGHT) {
+        updateFormatInfo(data);
+        if (mSizeChanged) {
+            flushSurfaceBuffers();
+            mSizeChanged = false;
+            return DECODE_FORMAT_CHANGE;
+        }
+    }
+
     status = decodeFrame(buffer, data);
     CHECK_STATUS("decodeFrame");
     if (mSizeChanged) {