summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/on2/h264dec/SoftAVC.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-06-09 11:11:45 -0700
committerJames Dong <jdong@google.com>2011-06-09 11:39:36 -0700
commit639ffaca514deb9de538bc2dc6e712380db68fd3 (patch)
treee5c23e70636a27ebba7ebafdaf29d2671f0bcfdd /media/libstagefright/codecs/on2/h264dec/SoftAVC.h
parent6ad97c72b9e63b4175a1df7b99448536402a7d1f (diff)
downloadframeworks_av-639ffaca514deb9de538bc2dc6e712380db68fd3.zip
frameworks_av-639ffaca514deb9de538bc2dc6e712380db68fd3.tar.gz
frameworks_av-639ffaca514deb9de538bc2dc6e712380db68fd3.tar.bz2
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
Diffstat (limited to 'media/libstagefright/codecs/on2/h264dec/SoftAVC.h')
-rw-r--r--media/libstagefright/codecs/on2/h264dec/SoftAVC.h1
1 files changed, 1 insertions, 0 deletions
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;