mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Use direct buffer access
This commit is contained in:
parent
8f6af2ce1e
commit
10b5ea4cb4
@ -15,6 +15,7 @@
|
|||||||
if (self != nil) {
|
if (self != nil) {
|
||||||
void *avIoBuffer = av_malloc(bufferSize);
|
void *avIoBuffer = av_malloc(bufferSize);
|
||||||
_impl = avio_alloc_context(avIoBuffer, bufferSize, 0, opaqueContext, readPacket, nil, seek);
|
_impl = avio_alloc_context(avIoBuffer, bufferSize, 0, opaqueContext, readPacket, nil, seek);
|
||||||
|
_impl->direct = 1;
|
||||||
if (_impl == nil) {
|
if (_impl == nil) {
|
||||||
av_free(avIoBuffer);
|
av_free(avIoBuffer);
|
||||||
return nil;
|
return nil;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user