diff options
author | Ronghua Wu <ronghuawu@google.com> | 2015-01-08 22:17:01 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-08 22:17:01 +0000 |
commit | 9a9c9be1f8c1664253d11f8913a30998a2950521 (patch) | |
tree | e1d6ce3eab92ded227f5103ba513738875a0075e /media/libstagefright/codecs/m4v_h263/dec | |
parent | 8840754c5bc44c7e11ed5e9acc15e9569f5814c5 (diff) | |
parent | d18196a140ea8eee971508ca4a9fcc5f060fe94b (diff) | |
download | frameworks_av-9a9c9be1f8c1664253d11f8913a30998a2950521.zip frameworks_av-9a9c9be1f8c1664253d11f8913a30998a2950521.tar.gz frameworks_av-9a9c9be1f8c1664253d11f8913a30998a2950521.tar.bz2 |
am d18196a1: am c8c68c88: Merge "Use aligned width and height to compute size." into lmp-mr1-dev
* commit 'd18196a140ea8eee971508ca4a9fcc5f060fe94b':
Use aligned width and height to compute size.
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/dec')
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp index 844bd14..b783222 100644 --- a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +++ b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp @@ -247,10 +247,13 @@ OSCL_EXPORT_REF Bool PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf video->vol[idx]->useReverseVLC = 0; video->intra_acdcPredDisable = 1; video->vol[idx]->scalability = 0; - video->size = (int32)width * height; - video->displayWidth = video->width = width; - video->displayHeight = video->height = height; + video->displayWidth = width; + video->displayHeight = height; + video->width = (width + 15) & -16; + video->height = (height + 15) & -16; + video->size = (int32)video->width * video->height; + #ifdef PV_ANNEX_IJKT_SUPPORT video->modified_quant = 0; video->advanced_INTRA = 0; |