Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6594cb8a authored by hkuang's avatar hkuang
Browse files

transcoding: Fix a bug in ApplicationMediaCapabilites.

The creater have not parsed the unsupported codec/hdr types.

Bug: 176993974
Test: atest  CtsMediaTranscodingTestCases:ApplicationMediaCapabilitiesTest
Change-Id: Id6a692ae468948ea5672e22f0b3af0b6e50ecfad
parent 792c798c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -192,12 +192,25 @@ public final class ApplicationMediaCapabilities implements Parcelable {
                    for (int readCount = 0; readCount < count; ++readCount) {
                        builder.addSupportedVideoMimeType(in.readString());
                    }

                    // Parse unsupported video codec mime types.
                    count = in.readInt();
                    for (int readCount = 0; readCount < count; ++readCount) {
                        builder.addUnsupportedVideoMimeType(in.readString());
                    }

                    // Parse supported hdr types.
                    count = in.readInt();
                    for (int readCount = 0; readCount < count; ++readCount) {
                        builder.addSupportedHdrType(in.readString());
                    }

                    // Parse unsupported hdr types.
                    count = in.readInt();
                    for (int readCount = 0; readCount < count; ++readCount) {
                        builder.addUnsupportedHdrType(in.readString());
                    }

                    boolean supported = in.readBoolean();
                    builder.setSlowMotionSupported(supported);