mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Use direct buffer access
This commit is contained in:
parent
8f6af2ce1e
commit
10b5ea4cb4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user