Skip to content

Commit

Permalink
fixed possible memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Mar 25, 2024
1 parent f393e46 commit 8401aa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public void onInputBufferAvailable(@NonNull MediaCodec codec, int index) {
// the following is always true. why?
// fixme
try {
if (mainActivity.avBuffer.size() > 1) {
if (mainActivity.avBuffer.size() > 0) {
MainActivity.AVBuffer avBuffer = mainActivity.avBuffer.pop();
ByteBuffer buffer = codec.getInputBuffer(index);

Expand Down

0 comments on commit 8401aa8

Please sign in to comment.