Release a MediaCodec buffer and render it to the surface that is associated
with the decoder. This function should only be called once on a given
buffer, once released the underlying buffer returns to the codec, thus
subsequent calls to this function will have no effect.
@param buffer the buffer to render
@param render 1 to release and render the buffer to the surface or 0 to
discard the buffer
@return 0 on success, < 0 otherwise
Release a MediaCodec buffer and render it to the surface that is associated with the decoder. This function should only be called once on a given buffer, once released the underlying buffer returns to the codec, thus subsequent calls to this function will have no effect.
@param buffer the buffer to render @param render 1 to release and render the buffer to the surface or 0 to discard the buffer @return 0 on success, < 0 otherwise