1e41f4b71Sopenharmony_ci# Multimedia Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## c1.multimedia.1 API Behavior of OH_VideoDecoder_Configure and OH_VideoEncoder_Configure Changed 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic API 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThe parameters passed by the encoder to the **Configure** API are not verified. In some scenarios, invalid values are passed in, causing effect-related issues. Parameter verification should be added to ensure that the parameters used during encoding or decoding meet the codec capabilities and requirements. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis change is a compatibility change. If an incorrect parameter is passed in to the **Configure** API, an error is thrown. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciFor details about the decoder parameter verification logic, see [OH_VideoDecoder_Configure()](../../../application-dev/reference/apis-avcodec-kit/_video_decoder.md#oh_videodecoder_configure). 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciFor details about the encoder parameter verification logic, see [OH_VideoEncoder_Configure()](../../../application-dev/reference/apis-avcodec-kit/_video_encoder.md#oh_videoencoder_configure). 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Start API Level** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciAPI version 9 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Change Since** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.22 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci**Key API/Component Changes** 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci| Name | Description | 32e41f4b71Sopenharmony_ci| ------------------------- | --------------------------- | 33e41f4b71Sopenharmony_ci| OH_VideoDecoder_Configure | An error is thrown if an invalid parameter is passed in.| 34e41f4b71Sopenharmony_ci| OH_VideoEncoder_Configure | An error is thrown if an invalid parameter is passed in.| 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci**Adaptation Guide** 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ciYou can use the codec capability query interface to obtain the encoder parameter ranges. For details, see [Obtaining Supported Codecs](../../../application-dev/media/avcodec/obtain-supported-codecs.md). 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci## c1.multimedia.1 API Behavior of OH_AVFormat Set Changed 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci**Access Level** 43e41f4b71Sopenharmony_ci 44e41f4b71Sopenharmony_ciPublic API 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci**Reason for Change** 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ci**OH_AVFormat** supports multiple types of parameters (int, long, float, double, string, and buffer). When an incorrect **Set** API is called to pass in a value, no error is reported. Consequently, related functional modules cannot obtain the corresponding parameters, causing effect-related issues. Parameter type verification logic should be added to the **Set** API to ensure correct parameter settings. 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ci**Change Impact** 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ciThis change is a compatibility change. The **Set** API returns **false** only when it is incorrectly called. 53e41f4b71Sopenharmony_ci 54e41f4b71Sopenharmony_ci**Start API Level** 55e41f4b71Sopenharmony_ci 56e41f4b71Sopenharmony_ciAPI version 9 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ci**Change Since** 59e41f4b71Sopenharmony_ci 60e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.22 61e41f4b71Sopenharmony_ci 62e41f4b71Sopenharmony_ci**Key API/Component Changes** 63e41f4b71Sopenharmony_ci 64e41f4b71Sopenharmony_ci| Name | Description | 65e41f4b71Sopenharmony_ci| -------------------------- | --------------------------------------- | 66e41f4b71Sopenharmony_ci| OH_AVFormat_SetIntValue | If this API is called to set a parameter of the non-int type, an error is reported. | 67e41f4b71Sopenharmony_ci| OH_AVFormat_SetLongValue | If this API is called to set a parameter of the non-long type, an error is reported. | 68e41f4b71Sopenharmony_ci| OH_AVFormat_SetFloatValue | If this API is called to set a parameter of the non-float type, an error is reported. | 69e41f4b71Sopenharmony_ci| OH_AVFormat_SetDoubleValue | If this API is called to set a parameter of the non-double type, an error is reported.| 70e41f4b71Sopenharmony_ci| OH_AVFormat_SetStringValue | If this API is called to set a parameter of the non-string type, an error is reported.| 71e41f4b71Sopenharmony_ci| OH_AVFormat_SetBuffer | If this API is called to set a parameter of the non-buffer type, an error is reported.| 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ci**Adaptation Guide** 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ciUse the **Set** API of **OH_AVFormat** to pass in parameters by referring to the type definition of each parameter. 76