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

Commit dfca1ce8 authored by Wonsik Kim's avatar Wonsik Kim Committed by Automerger Merge Worker
Browse files

Merge "CCodec: use known default format for bytebuffer mode decoder" am:...

Merge "CCodec: use known default format for bytebuffer mode decoder" am: c31f1502 am: ae6ff951 am: 0cd597d7

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1659426

Change-Id: I286fe0727c632786919ce0d297c3ea7a5df85b00
parents 271fe6ed 0cd597d7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -997,7 +997,15 @@ void CCodec::configure(const sp<AMessage> &msg) {
                // needed for decoders.
                if (!(config->mDomain & Config::IS_ENCODER)) {
                    if (surface == nullptr) {
                        format = flexPixelFormat.value_or(COLOR_FormatYUV420Flexible);
                        const char *prefix = "";
                        if (flexSemiPlanarPixelFormat) {
                            format = COLOR_FormatYUV420SemiPlanar;
                            prefix = "semi-";
                        } else {
                            format = COLOR_FormatYUV420Planar;
                        }
                        ALOGD("Client requested ByteBuffer mode decoder w/o color format set: "
                                "using default %splanar color format", prefix);
                    } else {
                        format = COLOR_FormatSurface;
                    }