mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Add a copy constructor for the buffer descriptor class
This commit is contained in:
parent
8ba9d8cfc8
commit
303ffaa8a3
@ -11,4 +11,11 @@ public class AvBufferDescriptor {
|
|||||||
this.offset = offset;
|
this.offset = offset;
|
||||||
this.length = length;
|
this.length = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AvBufferDescriptor(AvBufferDescriptor desc)
|
||||||
|
{
|
||||||
|
this.data = desc.data;
|
||||||
|
this.offset = desc.offset;
|
||||||
|
this.length = desc.length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ public class AvPacket {
|
|||||||
|
|
||||||
public AvPacket(AvBufferDescriptor rtpPayload)
|
public AvPacket(AvBufferDescriptor rtpPayload)
|
||||||
{
|
{
|
||||||
buffer = new AvBufferDescriptor(rtpPayload.data, rtpPayload.offset, rtpPayload.length);
|
buffer = new AvBufferDescriptor(rtpPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AvBufferDescriptor getNewPayloadDescriptor()
|
public AvBufferDescriptor getNewPayloadDescriptor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user