Why the “MediaCodec CodecException” in “queueInputBuffer” only happen on Android API 29?
问题 Basic Info targetSdkVersion 28 Goal : The objective of the class is to resize a video before sending to my server. Problem : The app crashes only on API 29, whether with real devices or using AVD. For example, the code works fine on Pixel 2 API 28 , but not on Pixel 2 API 29 Source Code : I use mostly the sample code from bigflake.com. Error message (detailed log are atteched below): E/AndroidRuntime: FATAL EXCEPTION: Thread-20 Process: com.myapp.myapp, PID: 9189 android.media.MediaCodec