修复测试范例输入aac数据相关bug

This commit is contained in:
xiongziliang 2022-03-12 09:32:36 +08:00
parent 8324a9fe43
commit 1b663e43ac
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ API_EXPORT int API_CALL mk_media_input_h265(mk_media ctx, const void *data, int
/** /**
* AAC音频(adts头) * AAC音频(adts头)
* @param ctx * @param ctx
* @param data adts头的单帧AAC数据 * @param data adts头的单帧AAC数据adts头7个字节
* @param len AAC数据字节数 * @param len AAC数据字节数
* @param dts * @param dts
* @param adts adts头null * @param adts adts头null

View File

@ -130,8 +130,8 @@ void API_CALL on_mk_play_data_func(void *user_data,int track_type, int codec_id,
break; break;
} }
case 2 : { case 2 : {
//aac //aac, aac头7个字节
mk_media_input_aac(ctx->media, data, (int)len, dts, data); mk_media_input_aac(ctx->media, data + 7, (int)len, dts, data);
break; break;
} }
case 3 : //g711a case 3 : //g711a