OSDN Git Service

DO NOT MERGE - ACodec: Save and use the previous crop rectangle.
authorPawin Vongmasa <pawin@google.com>
Fri, 12 Aug 2016 01:51:24 +0000 (18:51 -0700)
committerPawin Vongmasa <pawin@google.com>
Fri, 12 Aug 2016 02:16:07 +0000 (02:16 +0000)
commit07d73a0a3f20bb089475fe538c9f760eea69f55f
tree087ed818ab60cdce750bd94e1741be4a4f31ed3b
parent7ab70a7ba9ff522d45763af48d15aac805738d9c
DO NOT MERGE - ACodec: Save and use the previous crop rectangle.

When the surface changes, set the crop rectangle for the new native
window using the previous crop rectangle if available.

Also prevent null pointer dereferencing in debug mode.

Bug: 30690174

Change-Id: I7a707d661ced5a87fcaa8568cbb903fbc26ea346
include/media/stagefright/ACodec.h
media/libstagefright/ACodec.cpp