Change width and crop usage to match VideoDecoderAVC
am: ef2fa3c2d1

Change-Id: Ic4b0aef7cffa9882d934574fb6a2660cfb95d7b6
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp
index 323739b..a2686bc 100755
--- a/videocodec/OMXVideoDecoderBase.cpp
+++ b/videocodec/OMXVideoDecoderBase.cpp
@@ -786,6 +786,7 @@
     if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 ||
         strcasecmp(formatInfo->mimeType,"video/h264") == 0) {
         heightCropped = formatInfo->height;
+        widthCropped = formatInfo->width;
     }
     uint32_t strideCropped = widthCropped;
     uint32_t sliceHeightCropped = heightCropped;
@@ -1215,6 +1216,7 @@
         if (strcasecmp(formatInfo->mimeType,"video/avc") == 0 ||
             strcasecmp(formatInfo->mimeType,"video/h264") == 0) {
             rectParams->nHeight = formatInfo->height;
+            rectParams->nWidth = formatInfo->width;
         }
 
         // if port width parsed from extractor is not as same as from SPS/PPS nalu header,