Commit 0d01cae2 by tonihei

Suppress lint warning about wrong IntDef in FrameworkMuxer

The values are equivalent and we can suppress the warning.

PiperOrigin-RevId: 406839242
parent f238439b
...@@ -19,6 +19,7 @@ import static com.google.android.exoplayer2.util.Assertions.checkNotNull; ...@@ -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.SDK_INT;
import static com.google.android.exoplayer2.util.Util.castNonNull; import static com.google.android.exoplayer2.util.Util.castNonNull;
import android.annotation.SuppressLint;
import android.media.MediaCodec; import android.media.MediaCodec;
import android.media.MediaFormat; import android.media.MediaFormat;
import android.media.MediaMuxer; import android.media.MediaMuxer;
...@@ -122,6 +123,7 @@ import java.nio.ByteBuffer; ...@@ -122,6 +123,7 @@ import java.nio.ByteBuffer;
return mediaMuxer.addTrack(mediaFormat); return mediaMuxer.addTrack(mediaFormat);
} }
@SuppressLint("WrongConstant") // C.BUFFER_FLAG_KEY_FRAME equals MediaCodec.BUFFER_FLAG_KEY_FRAME.
@Override @Override
public void writeSampleData( public void writeSampleData(
int trackIndex, ByteBuffer data, boolean isKeyFrame, long presentationTimeUs) { int trackIndex, ByteBuffer data, boolean isKeyFrame, long presentationTimeUs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment