1# Multimedia Subsystem Changelog
2
3## c1.multimedia.1 API Behavior of OH_VideoDecoder_Configure and OH_VideoEncoder_Configure Changed
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11The 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.
12
13**Change Impact**
14
15This change is a compatibility change. If an incorrect parameter is passed in to the **Configure** API, an error is thrown.
16
17For details about the decoder parameter verification logic, see [OH_VideoDecoder_Configure()](../../../application-dev/reference/apis-avcodec-kit/_video_decoder.md#oh_videodecoder_configure).
18
19For details about the encoder parameter verification logic, see [OH_VideoEncoder_Configure()](../../../application-dev/reference/apis-avcodec-kit/_video_encoder.md#oh_videoencoder_configure).
20
21**Start API Level**
22
23API version 9
24
25**Change Since**
26
27OpenHarmony SDK 5.0.0.22
28
29**Key API/Component Changes**
30
31| Name                     | Description                       |
32| ------------------------- | --------------------------- |
33| OH_VideoDecoder_Configure | An error is thrown if an invalid parameter is passed in.|
34| OH_VideoEncoder_Configure | An error is thrown if an invalid parameter is passed in.|
35
36**Adaptation Guide**
37
38You 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).
39
40## c1.multimedia.1 API Behavior of OH_AVFormat Set Changed
41
42**Access Level**
43
44Public API
45
46**Reason for Change**
47
48**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.
49
50**Change Impact**
51
52This change is a compatibility change. The **Set** API returns **false** only when it is incorrectly called.
53
54**Start API Level**
55
56API version 9
57
58**Change Since**
59
60OpenHarmony SDK 5.0.0.22
61
62**Key API/Component Changes**
63
64| Name                      | Description                                   |
65| -------------------------- | --------------------------------------- |
66| OH_AVFormat_SetIntValue    | If this API is called to set a parameter of the non-int type, an error is reported.   |
67| OH_AVFormat_SetLongValue   | If this API is called to set a parameter of the non-long type, an error is reported.  |
68| OH_AVFormat_SetFloatValue  | If this API is called to set a parameter of the non-float type, an error is reported. |
69| OH_AVFormat_SetDoubleValue | If this API is called to set a parameter of the non-double type, an error is reported.|
70| OH_AVFormat_SetStringValue | If this API is called to set a parameter of the non-string type, an error is reported.|
71| OH_AVFormat_SetBuffer      | If this API is called to set a parameter of the non-buffer type, an error is reported.|
72
73**Adaptation Guide**
74
75Use the **Set** API of **OH_AVFormat** to pass in parameters by referring to the type definition of each parameter.
76