From 5bb832997a550d0e8fcb020184f27e0f0c8c4ac4 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sat, 16 Jul 2011 21:45:28 -0400 Subject: [PATCH] Stream address passed by MFC_ENC_EXE is an offset from start of mmap region, so add pCTX->mapped_addr to it to get the correct address. Change-Id: I2362cb8fefaa875481449c827fe9561b096ca19b --- .../sec_omx/sec_codecs/video/mfc_c110/enc/src/SsbSipMfcEncAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sec_mm/sec_omx/sec_codecs/video/mfc_c110/enc/src/SsbSipMfcEncAPI.c b/sec_mm/sec_omx/sec_codecs/video/mfc_c110/enc/src/SsbSipMfcEncAPI.c index 6b927cc..7ae2fcc 100644 --- a/sec_mm/sec_omx/sec_codecs/video/mfc_c110/enc/src/SsbSipMfcEncAPI.c +++ b/sec_mm/sec_omx/sec_codecs/video/mfc_c110/enc/src/SsbSipMfcEncAPI.c @@ -357,7 +357,7 @@ SSBSIP_MFC_ERROR_CODE SsbSipMfcEncInit(void *openHandle, void *param) return MFC_RET_ENC_INIT_FAIL; } - pCTX->virStrmBuf = EncArg.args.enc_init.cmn.out_u_addr.strm_ref_y; + pCTX->virStrmBuf = EncArg.args.enc_init.cmn.out_u_addr.strm_ref_y + pCTX->mapped_addr; pCTX->phyStrmBuf = EncArg.args.enc_init.cmn.out_p_addr.strm_ref_y; pCTX->sizeStrmBuf = MAX_ENCODER_OUTPUT_BUFFER_SIZE; pCTX->encodedHeaderSize = EncArg.args.enc_init.cmn.out_header_size;