mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-27 04:20:13 +08:00
修复测试范例输入aac数据相关bug
This commit is contained in:
parent
8324a9fe43
commit
1b663e43ac
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user