diff --git a/media3ext/src/main/java/io/github/anilbeesetti/nextlib/media3ext/ffdecoder/FfmpegAudioDecoder.java b/media3ext/src/main/java/io/github/anilbeesetti/nextlib/media3ext/ffdecoder/FfmpegAudioDecoder.java index 3561e08..962a408 100644 --- a/media3ext/src/main/java/io/github/anilbeesetti/nextlib/media3ext/ffdecoder/FfmpegAudioDecoder.java +++ b/media3ext/src/main/java/io/github/anilbeesetti/nextlib/media3ext/ffdecoder/FfmpegAudioDecoder.java @@ -4,6 +4,7 @@ import android.annotation.SuppressLint; +import androidx.annotation.Keep; import androidx.annotation.Nullable; import androidx.media3.common.C; import androidx.media3.common.Format; @@ -136,6 +137,7 @@ protected FfmpegDecoderException decode( // Called from native code /** @noinspection unused*/ + @Keep private ByteBuffer growOutputBuffer(SimpleDecoderOutputBuffer outputBuffer, int requiredSize) { // Use it for new buffer so that hopefully we won't need to reallocate again outputBufferSize = requiredSize;