From 1b663e43ac214a11935094ee8e1a400ac4282dd8 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 12 Mar 2022 09:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=8C=83?= =?UTF-8?q?=E4=BE=8B=E8=BE=93=E5=85=A5aac=E6=95=B0=E6=8D=AE=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/include/mk_media.h | 2 +- api/tests/pusher.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/include/mk_media.h b/api/include/mk_media.h index 90446bc2..14d19938 100755 --- a/api/include/mk_media.h +++ b/api/include/mk_media.h @@ -100,7 +100,7 @@ API_EXPORT int API_CALL mk_media_input_h265(mk_media ctx, const void *data, int /** * 输入单帧AAC音频(单独指定adts头) * @param ctx 对象指针 - * @param data 不包含adts头的单帧AAC数据 + * @param data 不包含adts头的单帧AAC数据,adts头7个字节 * @param len 单帧AAC数据字节数 * @param dts 时间戳,毫秒 * @param adts adts头,可以为null diff --git a/api/tests/pusher.c b/api/tests/pusher.c index 0d99d97f..b3d709bc 100644 --- a/api/tests/pusher.c +++ b/api/tests/pusher.c @@ -130,8 +130,8 @@ void API_CALL on_mk_play_data_func(void *user_data,int track_type, int codec_id, break; } case 2 : { - //aac - mk_media_input_aac(ctx->media, data, (int)len, dts, data); + //aac, aac头7个字节 + mk_media_input_aac(ctx->media, data + 7, (int)len, dts, data); break; } case 3 : //g711a