Suppress lint warning about wrong IntDef in FrameworkMuxer

The values are equivalent and we can suppress the warning.

PiperOrigin-RevId: 406839242
This commit is contained in:
tonihei 2021-11-01 16:03:06 +00:00
parent 8cefb845df
commit 455fb89cd4

View File

@ -19,6 +19,7 @@ import static com.google.android.exoplayer2.util.Assertions.checkNotNull;
import static com.google.android.exoplayer2.util.Util.SDK_INT;
import static com.google.android.exoplayer2.util.Util.castNonNull;
import android.annotation.SuppressLint;
import android.media.MediaCodec;
import android.media.MediaFormat;
import android.media.MediaMuxer;
@ -122,6 +123,7 @@ import java.nio.ByteBuffer;
return mediaMuxer.addTrack(mediaFormat);
}
@SuppressLint("WrongConstant") // C.BUFFER_FLAG_KEY_FRAME equals MediaCodec.BUFFER_FLAG_KEY_FRAME.
@Override
public void writeSampleData(
int trackIndex, ByteBuffer data, boolean isKeyFrame, long presentationTimeUs) {