X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FMPEGDVBBundle%2FTLVPacket.ct;h=ea91f809aa569fb033a417f99067c05ef89149a7;hb=46ce25973f087d30ca10eebdad6e3bfa7586ecc9;hp=1b965a4f129e93e47697c4a87b635a7d3fcfef33;hpb=652de52f32911951ca0c372459555aabf8e22bed;p=senf.git diff --git a/Packets/MPEGDVBBundle/TLVPacket.ct b/Packets/MPEGDVBBundle/TLVPacket.ct index 1b965a4..ea91f80 100644 --- a/Packets/MPEGDVBBundle/TLVPacket.ct +++ b/Packets/MPEGDVBBundle/TLVPacket.ct @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify @@ -43,10 +43,15 @@ prefix_ void senf::TLVPacketType::dump(packet p, std:: template prefix_ void senf::TLVPacketType::finalize(packet p) { - PacketData::size_type size = p.next().data().size(); - if ( size > LengthParser::max_value ) - throw(UnsuportedTLVPacketException()); - p->length() = size; + try { + PacketData::size_type size = p.next().data().size(); + if ( size > LengthParser::max_value ) + throw(UnsuportedTLVPacketException()); + p->length() = size; + } + catch (InvalidPacketChainException & ex) { + ; + } } template