{"shas":[["c11ee69c81198dc221c874e8132f1f30a385fa63","0b36ee2b03740f5620bf212e5aefe18fbe2c2521@mythtv.org","Deal with incomplete PMT streams in BBC iPlayer IPTV\n\nFixes #9926\n\nIt turns out that the test recording (and presumably the others from the same\nsource) contain incomplete PMT tables.  The size field for the PMT says that\nthere will be 383 bytes of data, but the only data received is the 182 bytes\ncontained in the rest of that TS packet. i\n\nFFmpeg without MythTV modifications to mpegts.c can handle this just fine as\nit doesn't need to know about the contents of the PMT.  MythTV, however,\ndepends on that information to determine what video and audio streams we have.\n\nTo deal with this without affecting \"normal\" recordings, I have put in another\nfallback that will try to parse the PMT overriding the length to the length\nreceived in the TS packet.  This will only be used if it can not be parsed\ncorrectly, and if we've tried again without checking the CRC.  This third and\nfinal attempt, should it fail, will cause it to give up.  Should it succeed,\nthere may be some streams not parsed, but whatever was in the first 182 bytes\nof the PMT should be taken into consideration, and there should be playback.","Gavin Hurlbut"]],"ref":"refs/heads/master","size":1,"head":"c11ee69c81198dc221c874e8132f1f30a385fa63","push_id":37512653}