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