Append the NAL data by reference instead of copying into a new buffer

This commit is contained in:
Cameron Gutman
2014-10-20 04:48:48 -04:00
parent f3b3d2bd08
commit f909371a90
2 changed files with 18 additions and 13 deletions

View File

@@ -14,7 +14,7 @@
- (id)initWithView:(UIView*)view;
- (size_t)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
- (void)submitDecodeBuffer:(unsigned char *)data length:(int)length;