Skip to content

Commit 78c6570

Browse files
committed
send block data
Change-Id: I85632c6355f9a63d78704dc768200290d64e40f8
1 parent c0f05c6 commit 78c6570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/SDK/LinkVideo/FLV/TIoTAVCaptionFLV.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,14 @@ int encodeFlvData(int type, NSData *packetData) {
518518
NSLog(@"Please init flv muxer first.");
519519
return -1;
520520
}
521-
521+
__block NSData *blockData = packetData;
522522
dispatch_async(muxerQueue, ^{
523523

524524
CFTimeInterval timestamp = CACurrentMediaTime();
525525
uint32_t pts = timestamp*1000;
526526

527-
const void *c_data = packetData.bytes;
528-
NSUInteger len = packetData.length;
527+
const void *c_data = blockData.bytes;
528+
NSUInteger len = blockData.length;
529529
// NSLog(@"===========================------------ %ld, pts: %u", len, pts);
530530

531531

0 commit comments

Comments
 (0)