X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a5b2405cf17234cf9396f6b45f3e10a44a5eceaf..aabe98bebb2aa90435f5124c6151d718d18dfcd5:/lib/dvb/pmt.cpp?ds=sidebyside diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp index 55ce6d49..fb81fa4c 100644 --- a/lib/dvb/pmt.cpp +++ b/lib/dvb/pmt.cpp @@ -400,9 +400,9 @@ int eDVBServicePMTHandler::getProgramInfo(struct program &program) case 0x56432d31: // == 'VC-1' { const AdditionalIdentificationInfoVector *vec = d->getAdditionalIdentificationInfo(); - if (vec->size() > 1 && (*vec)[1] == 0x01) // subdescriptor tag + if (vec->size() > 1 && (*vec)[0] == 0x01) // subdescriptor tag { - if ((*vec)[2] >= 0x90) // profile_level + if ((*vec)[1] >= 0x90) // profile_level video.type = videoStream::vtVC1; // advanced profile else video.type = videoStream::vtVC1_SM; // simple main @@ -461,7 +461,7 @@ int eDVBServicePMTHandler::getProgramInfo(struct program &program) default: break; } - if (isteletext != -1 && (isaudio || isvideo)) + if (isteletext && (isaudio || isvideo)) { eDebug("ambiguous streamtype for PID %04x detected.. forced as teletext!", (*es)->getPid()); continue; // continue with next PID