Skip to content

Commit

Permalink
Fix MediaCodec constant deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Aug 21, 2024
1 parent 9f1d85f commit 168b5ab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public void close() throws IOException {

if((extractor.getSampleFlags()
& MediaExtractor.SAMPLE_FLAG_SYNC) != 0) {
//noinspection deprecation
flags |= MediaCodec.BUFFER_FLAG_SYNC_FRAME;
flags |= MediaCodec.BUFFER_FLAG_KEY_FRAME;
}

if((extractor.getSampleFlags()
Expand Down

0 comments on commit 168b5ab

Please sign in to comment.