From 639ffaca514deb9de538bc2dc6e712380db68fd3 Mon Sep 17 00:00:00 2001 From: James Dong Date: Thu, 9 Jun 2011 11:11:45 -0700 Subject: Correctly handle crop rect event in SoftAVC.cpp Width and height of the video frame was incorrectly overwritten when a cropping need was detected. Using a separate crop width and crop height resolves the problem. Change-Id: I8a371c7fe7f8417a7995d7a7fe231120274ea0c8 related-to-bug: 4575591 --- media/libstagefright/codecs/on2/h264dec/SoftAVC.h | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libstagefright/codecs/on2/h264dec/SoftAVC.h') diff --git a/media/libstagefright/codecs/on2/h264dec/SoftAVC.h b/media/libstagefright/codecs/on2/h264dec/SoftAVC.h index a7340c0..3439efd 100644 --- a/media/libstagefright/codecs/on2/h264dec/SoftAVC.h +++ b/media/libstagefright/codecs/on2/h264dec/SoftAVC.h @@ -67,6 +67,7 @@ private: uint32_t mWidth, mHeight, mPictureSize; uint32_t mCropLeft, mCropTop; + uint32_t mCropWidth, mCropHeight; uint8_t *mFirstPicture; int32_t mFirstPictureId; -- cgit v1.1