Convenience function that sets up the MediaCodec context.
@param avctx codec context @param ctx MediaCodec context to initialize @param surface reference to an android/view/Surface @return 0 on success, < 0 otherwise
See Implementation
Convenience function that sets up the MediaCodec context.
@param avctx codec context @param ctx MediaCodec context to initialize @param surface reference to an android/view/Surface @return 0 on success, < 0 otherwise