mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-04 12:14:29 +00:00
Use direct buffer access
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user