mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Merge pull request #15 from nanotech/f/idr-obo
Fix off-by-one when looking for an I-frame NAL
This commit is contained in:
commit
92d534a9c3
@ -274,6 +274,9 @@ public class VideoDepacketizer {
|
|||||||
// Reassemble any pending NAL
|
// Reassemble any pending NAL
|
||||||
reassembleFrame(packet.getFrameIndex());
|
reassembleFrame(packet.getFrameIndex());
|
||||||
|
|
||||||
|
// Reload cachedSpecialDesc after reassembleFrame overwrote it
|
||||||
|
NAL.getSpecialSequenceDescriptor(location, cachedSpecialDesc);
|
||||||
|
|
||||||
if (isReferencePictureNalu(cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length])) {
|
if (isReferencePictureNalu(cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length])) {
|
||||||
// This is the NALU code for I-frame data
|
// This is the NALU code for I-frame data
|
||||||
waitingForIdrFrame = false;
|
waitingForIdrFrame = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user