mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +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.length--;
|
||||||
location.offset++;
|
location.offset++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
specialSeq.free();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move to the next special sequence
|
// Move to the next special sequence
|
||||||
@ -207,8 +209,12 @@ public class AvVideoDepacketizer {
|
|||||||
if (currentlyDecoding != AvDecodeUnit.TYPE_UNKNOWN ||
|
if (currentlyDecoding != AvDecodeUnit.TYPE_UNKNOWN ||
|
||||||
!NAL.isPadding(specialSeq))
|
!NAL.isPadding(specialSeq))
|
||||||
{
|
{
|
||||||
|
specialSeq.free();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
specialSeq.free();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user