added opus library

This commit is contained in:
Diego Waxemberg
2014-01-19 01:39:04 -05:00
parent 72ed023645
commit 1ef314d3bd
304 changed files with 5106 additions and 26 deletions

View File

@@ -31,11 +31,11 @@ static int BUFFER_LENGTH = 131072;
NSLog(@"stream status: %d", [inStream streamStatus]);
sleep(1);
}
while ([inStream streamStatus] != NSStreamStatusAtEnd)
while (true)
{
unsigned int len = 0;
len = [(NSInputStream *)inStream read:self.byteBuffer maxLength:BUFFER_LENGTH];
len = [inStream read:self.byteBuffer maxLength:BUFFER_LENGTH];
if (len)
{
BOOL firstStart = false;
@@ -64,7 +64,12 @@ static int BUFFER_LENGTH = 131072;
}
else
{
NSLog(@"No Buffer!");
NSLog(@"No Buffer! restarting file!");
// move offset back to beginning of start sequence
self.offset = 0;
[inStream close];
inStream = [[NSInputStream alloc] initWithFileAtPath:self.file];
[inStream open];
}
}

View File

@@ -7,7 +7,7 @@
//
#import "VideoDecoder.h"
#import "avcodec.h"
#import "libs/ffmpeg/armv7/include/libavcodec/avcodec.h"
#import "swscale.h"
#include <pthread.h>

View File

@@ -29,6 +29,7 @@
#include <errno.h>
#include "samplefmt.h"
#include "attributes.h"
#include "avutil.h"

Some files were not shown because too many files have changed in this diff Show More