diff options
Diffstat (limited to 'system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp')
-rw-r--r-- | system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp b/system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp index 8e871458..90b56532 100644 --- a/system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp +++ b/system/codecs/c2/decoders/avcdec/C2GoldfishAvcDec.cpp @@ -670,10 +670,11 @@ C2GoldfishAvcDec::ensureDecoderState(const std::shared_ptr<C2BlockPool> &pool) { void C2GoldfishAvcDec::checkMode(const std::shared_ptr<C2BlockPool> &pool) { mWidth = mIntf->width(); mHeight = mIntf->height(); - const bool isGraphic = (pool->getAllocatorId() == C2Allocator::GRAPHIC); + const bool isGraphic = (pool->getAllocatorId() & C2Allocator::GRAPHIC); + DDD("buffer id %d", (int)(pool->getAllocatorId())); if (isGraphic) { DDD("decoding to host color buffer"); - mEnableAndroidNativeBuffers = false; + mEnableAndroidNativeBuffers = true; } else { DDD("decoding to guest byte buffer"); mEnableAndroidNativeBuffers = false; |