cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
8.98k stars 2.26k forks source link

Fix native crash #495 #498

Open act262 opened 4 years ago

act262 commented 4 years ago

What does this change?

When onPreviewFrame size change , old glRgbBuffer size small new size, cause yuv decode error and render texture mistake.

What is the value of this and can you measure success?

Firstly use front camera, that use small size for preview, then switch back camera, that use bigger size. if no crash so here fix.

Screenshots

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.