Sync ioBufferSize with current player implementation

This commit is contained in:
Peter 2019-07-29 22:18:57 +03:00
parent d7770edbc2
commit 556d39a952
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;