问题 Im trying to render a video frame using android NDK. Im using this sample of google Native-Codec NDK sample code and modified it so I can manually display each video frame (non-tunneled). so I added this code to get the output buffer which is in YUV. ANativeWindow_setBuffersGeometry(mWindow, bufferWidth, bufferHeight, WINDOW_FORMAT_RGBA_8888 uint8_t *decodedBuff = AMediaCodec_getOutputBuffer(d->codec, status, &bufSize); auto format = AMediaCodec_getOutputFormat(d->codec); LOGV("VOUT: format