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

Commit 1348736d authored by Steve Kondik's avatar Steve Kondik
Browse files

libstagefright: Set default pixel format to YUV420SP

Change-Id: Ie87a0522500adf12217bd690608f07493e533194
parent 66dd3656
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -149,7 +149,9 @@ CameraSource::CameraSource(const sp<Camera> &camera)
    }

    const char *colorFormatStr = params.get(CameraParameters::KEY_VIDEO_FRAME_FORMAT);
    CHECK(colorFormatStr != NULL);
    if (colorFormatStr == NULL)
        colorFormatStr = CameraParameters::PIXEL_FORMAT_YUV420SP;

    int32_t colorFormat = getColorFormat(colorFormatStr);

    // XXX: query camera for the stride and slice height