Ticket #5859: dvbci.patch

File dvbci.patch, 655 bytes (added by anonymous, 16 years ago)
  • mythtv/libs/libmythtv/dvbdev/dvbci.cpp

     
    19241924    state = 2;
    19251925
    19261926    msg.msg[3] = CaPmt.length;
     1927
     1928    if (CaPmt.length > 256) {
     1929        fprintf(stderr, "CA_PMT too large; max length = 256");
     1930   
     1931        fprintf(stderr, "Message was [%02x %02x %02x ]\n",
     1932                       msg.msg[0], msg.msg[1], msg.msg[2]);
     1933
     1934        return false;
     1935    }
     1936
    19271937    memcpy(&msg.msg[4], CaPmt.capmt, CaPmt.length);
    19281938
    19291939    if ((SendData(AOT_CA_PMT, &msg)) < 0) {