mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 13:31:55 +00:00
Fix memory leaks of special NAL sequences
This commit is contained in:
1 parent
d5f59bb972
commit
e6959e66e4
1 file changed
+6
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user