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