mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Fix memory leaks of special NAL sequences
This commit is contained in:
@@ -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