h264 encoder: use get_data_from_name to get firmware

Change-Id: I1f68bc96eb5c0fc0157fd83e6ff016ed9e4b7c8f
Signed-off-by: Yuxi Sun <yuxi.sun@amlogic.com>
This commit is contained in:
Yuxi Sun
2017-10-11 13:48:09 +08:00
committed by Dongjin Kim
parent 01bd5ba2b8
commit e09b3c8126

View File

@@ -2260,8 +2260,7 @@ s32 amvenc_loadmc(const char *p, struct encode_wq_s *wq)
}
enc_pr(LOG_ALL, "avc encode ucode name is %s\n", p);
ret = get_decoder_firmware_data(VFORMAT_H264_ENC, p,
(u8 *)mc_addr, MC_SIZE);
ret = get_data_from_name(p, (u8 *)mc_addr);
if (ret < 0) {
enc_pr(LOG_ERROR,
"avc microcode fail ret=%d, name: %s, wq:%p.\n",