mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Sync ioBufferSize with current player implementation
This commit is contained in:
parent
d7770edbc2
commit
556d39a952
@ -120,7 +120,7 @@ private final class UniversalSoftwareVideoSourceImpl {
|
||||
|
||||
self.cancelRead = cancelInitialization
|
||||
|
||||
let ioBufferSize = 64 * 1024
|
||||
let ioBufferSize = 1 * 1024
|
||||
|
||||
guard let avIoContext = FFMpegAVIOContext(bufferSize: Int32(ioBufferSize), opaqueContext: Unmanaged.passUnretained(self).toOpaque(), readPacket: readPacketCallback, seek: seekCallback) else {
|
||||
return nil
|
||||
|
@ -39,7 +39,7 @@ int FFMpegCodecIdMPEG4 = AV_CODEC_ID_MPEG4;
|
||||
- (bool)openInput {
|
||||
AVDictionary *options = nil;
|
||||
av_dict_set(&options, "usetoc", "1", 0);
|
||||
int result = avformat_open_input(&_impl, "http://localhost/file", nil, &options);
|
||||
int result = avformat_open_input(&_impl, "file", nil, &options);
|
||||
av_dict_free(&options);
|
||||
if (_impl != nil) {
|
||||
_impl->flags |= AVFMT_FLAG_FAST_SEEK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user