mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
Use getter to access MediaRawData mData and mSize member
This commit is contained in:
@@ -464,7 +464,7 @@ void MediaCodecDataDecoder::DecoderLoop()
|
||||
|
||||
void* directBuffer = frame.GetEnv()->GetDirectBufferAddress(buffer.Get());
|
||||
|
||||
MOZ_ASSERT(frame.GetEnv()->GetDirectBufferCapacity(buffer.Get()) >= sample->mSize,
|
||||
MOZ_ASSERT(frame.GetEnv()->GetDirectBufferCapacity(buffer.Get()) >= sample->Size(),
|
||||
"Decoder buffer is not large enough for sample");
|
||||
|
||||
{
|
||||
@@ -473,9 +473,9 @@ void MediaCodecDataDecoder::DecoderLoop()
|
||||
mQueue.pop();
|
||||
}
|
||||
|
||||
PodCopy((uint8_t*)directBuffer, sample->mData, sample->mSize);
|
||||
PodCopy((uint8_t*)directBuffer, sample->Data(), sample->Size());
|
||||
|
||||
res = mDecoder->QueueInputBuffer(inputIndex, 0, sample->mSize,
|
||||
res = mDecoder->QueueInputBuffer(inputIndex, 0, sample->Size(),
|
||||
sample->mTime, 0);
|
||||
HANDLE_DECODER_ERROR();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user