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

Commit 271cbb62 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Remove hard-coded color format for Nvidia's video encoder"

parents 83d6e821 0349b27b
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -903,10 +903,6 @@ void OMXCodec::setVideoInputFormat(
    OMX_COLOR_FORMATTYPE colorFormat;
    OMX_COLOR_FORMATTYPE colorFormat;
    CHECK_EQ(OK, findTargetColorFormat(meta, &colorFormat));
    CHECK_EQ(OK, findTargetColorFormat(meta, &colorFormat));


    if (!strcasecmp("OMX.Nvidia.h264.encoder", mComponentName)) {
        colorFormat = OMX_COLOR_FormatYUV420Planar;
    }

    status_t err;
    status_t err;
    OMX_PARAM_PORTDEFINITIONTYPE def;
    OMX_PARAM_PORTDEFINITIONTYPE def;
    OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;
    OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;