用十六进制打印 nalu

size_t size;

uint8_t *naluData;

size_t frameSize = size;

uint8_t *data = naluData;

NSString *tmp3 = [NSString new];

for(int i = 0; i < frameSize; i++) {

    NSString *str = [NSString stringWithFormat:@" %.2X",data[i]];

    tmp3 = [tmp3 stringByAppendingString:str];

}

NSLog(@"Packet size ---->>%i", frameSize);

NSLog(@"%@", tmp3);

你可能感兴趣的:(用十六进制打印 nalu)