check codec support with JNI