Changeset 5366


Ignore:
Timestamp:
Jun 7, 2011, 9:11:36 PM (8 years ago)
Author:
_network
Message:

viaccess: next try for a workaround for emm from cccam (#1838)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-viaccess.c

    r5351 r5366  
    623623  // static const unsigned char insc8Data[] = { 0x00,0x00 }; // data for read extended status
    624624
    625   int32_t emmdatastart=7;
    626 
    627     if (ep->emm[1] == 0x01) // emm from cccam
     625    int32_t emmdatastart=7;
     626
     627    if (ep->emm[1] == 0x01) { // emm from cccam
    628628        emmdatastart=10;
     629        ep->emm[1] = 0x70; // (& 0x0f) of this byte is length, so 0x01 would increase the length by 256
     630        ep->emm[2] -= 3; // last 3 bytes are garbage
     631        if (ep->type == SHARED) {
     632            // build missing 0x90 nano from provider at serial position
     633            memcpy(ep->emm+7, ep->emm+3, 3);
     634            ep->emm[5] = 0x90;
     635            ep->emm[6] = 0x03;
     636            emmdatastart = 5;
     637        }
     638    }
    629639
    630640  if (ep->type == UNIQUE) emmdatastart++;
Note: See TracChangeset for help on using the changeset viewer.