| 224 | } |
| 225 | |
| 226 | bool ParserAVFormat::parseExtradata_mpeg2(ByteVector &extradata) |
| 227 | { |
| 228 | if (extradata.empty() || !packetModel->rootItem) |
| 229 | return true; |
| 230 | |
| 231 | if (extradata.at(0) == 0) |
| 232 | { |
| 233 | this->parseByteVectorAnnexBStartCodes( |
| 234 | extradata, |
| 235 | PacketDataFormat::RawNAL, |
| 236 | {}, |
| 237 | packetModel->rootItem->createChildItem("Extradata (Raw Mpeg2 units)")); |
| 238 | } |
| 239 | else |
| 240 | packetModel->rootItem->createChildItem( |
| 241 | "Unsupported extradata format (configurationVersion != 1)"); |
| 242 | |
| 243 | return true; |
| 244 | } |
| 245 | |
| 246 | std::map<std::string, unsigned> |
| 247 | ParserAVFormat::parseByteVectorAnnexBStartCodes(ByteVector & data, |
no test coverage detected