comparison src/tssplitter_lite.c @ 170:4f3640bf350d

Change display name of DLNA. - old_display name: (recpt1:devN) - new_display name: (hostname: /dev/ptXdevY) - change UUID format.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 17 Oct 2012 23:47:16 +0900
parents b21f1e823ec3
children 863ac6807ee3
comparison
equal deleted inserted replaced
169:cb54f9777734 170:4f3640bf350d
606 size = buf[7]; 606 size = buf[7];
607 607
608 /* prescan SID/PMT */ 608 /* prescan SID/PMT */
609 for(i = 13, j = 0; i < (size + 8) - 4; i = i + 4) { 609 for(i = 13, j = 0; i < (size + 8) - 4; i = i + 4) {
610 pid = GetPid(&buf[i+2]); 610 pid = GetPid(&buf[i+2]);
611 if(pid == 0x0010) 611 if(pid == NIT)
612 continue; 612 continue;
613 avail_sids[j] = (buf[i] << 8) + buf[i+2]; 613 avail_sids[j] = (buf[i] << 8) + buf[i+2];
614 sp->avail_pmts[j] = pid; 614 sp->avail_pmts[j] = pid;
615 j++; 615 j++;
616 } 616 }
619 // 対象チャンネル判定 619 // 対象チャンネル判定
620 /* size + 8 = パケット全長 */ 620 /* size + 8 = パケット全長 */
621 /* 最終 4 バイトはCRCなので飛ばす */ 621 /* 最終 4 バイトはCRCなので飛ばす */
622 for(i = 13; i < (size + 8) - 4; i = i + 4) { 622 for(i = 13; i < (size + 8) - 4; i = i + 4) {
623 pid = GetPid(&buf[i+2]); 623 pid = GetPid(&buf[i+2]);
624 if(pid==0x0010) 624 if(pid == NIT)
625 continue; 625 continue;
626 626
627 service_id = (buf[i] << 8) + buf[i+1]; 627 service_id = (buf[i] << 8) + buf[i+1];
628 p = sid_list; 628 p = sid_list;
629 629