Use direct buffer access

This commit is contained in:
Peter 2019-07-16 18:31:18 +01:00
parent 8f6af2ce1e
commit 10b5ea4cb4

View File

@ -15,6 +15,7 @@
if (self != nil) {
void *avIoBuffer = av_malloc(bufferSize);
_impl = avio_alloc_context(avIoBuffer, bufferSize, 0, opaqueContext, readPacket, nil, seek);
_impl->direct = 1;
if (_impl == nil) {
av_free(avIoBuffer);
return nil;