mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Fix memory leaks of special NAL sequences
This commit is contained in:
parent
d5f59bb972
commit
e6959e66e4
@ -189,6 +189,8 @@ public class AvVideoDepacketizer {
|
||||
location.length--;
|
||||
location.offset++;
|
||||
}
|
||||
|
||||
specialSeq.free();
|
||||
}
|
||||
|
||||
// Move to the next special sequence
|
||||
@ -207,8 +209,12 @@ public class AvVideoDepacketizer {
|
||||
if (currentlyDecoding != AvDecodeUnit.TYPE_UNKNOWN ||
|
||||
!NAL.isPadding(specialSeq))
|
||||
{
|
||||
specialSeq.free();
|
||||
break;
|
||||
}
|
||||
else {
|
||||
specialSeq.free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user