!2901 【修改说明】 根据评审意见修改错误码

Merge pull request !2901 from 李建超/master
This commit is contained in:
openharmony_ci 2024-08-13 01:46:35 +00:00 committed by Gitee
commit af92c67005
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 5 deletions

View File

@ -120,7 +120,7 @@ const std::map<AVCodecServiceErrCode, OH_AVErrCode> AVCSERRCODE_TO_OHAVCODECERRC
{AVCS_ERR_EXTEND_START, AV_ERR_EXTEND_START},
{AVCS_ERR_DECRYPT_FAILED, AV_ERR_DRM_DECRYPT_FAILED},
{AVCS_ERR_CODEC_PARAM_INCORRECT, AV_ERR_INVALID_VAL},
{AVCS_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION, AV_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION},
{AVCS_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION, AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION},
};
const std::map<OH_AVErrCode, std::string> OHAVCODECERRCODE_INFOS = {

View File

@ -632,9 +632,9 @@ extern const char *OH_MD_KEY_START_TIME;
* {@link OH_VideoDecoder_Configure}. If the color space conversion capability is supported and this key is configured,
* the video decoder will automatically transcode an HDR Vivid video to an SDR video with color space BT709.
* If color space conversion capability is not supported, {@link OH_VideoDecoder_Configure} returns
* {@link AV_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION}.
* If the input video is not an HDR vivid video, an error {@link AV_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION} will be
* reported by callback function {@link OH_AVCodecOnError}.
* {@link AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION}.
* If the input video is not an HDR vivid video, an error {@link AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION} will
* be reported by callback function {@link OH_AVCodecOnError}.
*
* @syscap SystemCapability.Multimedia.Media.CodecBase
* @since 12

View File

@ -136,7 +136,7 @@ OH_AVErrCode OH_VideoDecoder_SetSurface(OH_AVCodec *codec, OHNativeWindow *windo
* {@link AV_ERR_SERVICE_DIED}, avcodec service is died.
* {@link AV_ERR_INVALID_STATE}, this interface was called in invalid state, must be called before Prepare.
* {@link AV_ERR_UNSUPPORT}, unsupported features.
* {@link AV_ERR_VIDEO_UNSUPPORT_COLOR_SPACE_CONVERSION}, video unsupported color space conversion.
* {@link AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION}, video unsupported color space conversion.
* @since 9
* @version 1.0
*/