提交 e6820140 编写于 作者: L ling990

modify Signed-off-by: ling990 <liling96@huawei.com>

Signed-off-by: Nling990 <liling96@huawei.com>
上级 0d9e0004
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......
......@@ -264,8 +264,9 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
*/
it('SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_CALLBACK_00_0100', 0, async function (done) {
let decPath = BASIC_PATH + 'SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_CALLBACK_00_0100.es';
let name= 'avenc_mpeg4';
let mime = 'video/mp4v-es';
let mediaDescription = {
"codec_mime": 'video/mp4v-es',
'width': 720,
'height': 480,
'pixel_format': 3,
......@@ -297,7 +298,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
}
})
})
media.createVideoEncoderByName(name, (err, processor) => {
media.createVideoEncoderByMime(mime, (err, processor) => {
expect(err).assertUndefined();
if (typeof(processor) != 'undefined') {
console.info('case create createVideoEncoderByName success');
......
......@@ -334,7 +334,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
let height = 480;
let framerate = 60;
let mediaDescription = {
"codec_mime": "video/avc",
"codec_mime": 'video/mp4v-es',
"width": width,
"height": height,
"pixel_format": 3,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册