From 08630d552155210420743e5cf4acd53fd8bc374d Mon Sep 17 00:00:00 2001 From: dongwei Date: Wed, 23 Aug 2023 14:39:52 +0800 Subject: [PATCH] code check Signed-off-by: dongwei --- .../main/js/test/AvVideoRecorderFuncTestOne.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js b/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js index f13d55211..27762f61a 100644 --- a/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js +++ b/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js @@ -243,17 +243,17 @@ export default function avVideoRecorderTestOne() { function getVideoProfile(sizeList, width, height, toList, index) { console.log('display width: ' + width + ', height: ' + height); - let videoProfile = undefined; + let aVvideoProfile = undefined; for (let i = 0; i < sizeList.length; i++) { const size = sizeList[i].size; if(isCorrectSize(size, width, height)) { - if(!videoProfile || size.width > videoProfile.size.width) { - videoProfile = sizeList[i]; + if(!aVvideoProfile || size.width > aVvideoProfile.size.width) { + aVvideoProfile = sizeList[i]; } } } - toList[index] = videoProfile; - console.log('choosen videoProfile: ' + JSON.stringify(videoProfile)); + toList[index] = aVvideoProfile; + console.log('choosen aVvideoProfile: ' + JSON.stringify(aVvideoProfile)); } function isCorrectSize(size, standardWidth, standardHeight) { -- GitLab