1
0
Fork 0

determine if an ArtNzs is really an ArtVlc

This commit is contained in:
Kevin Matz 2023-05-20 13:36:23 -04:00
parent 29e7d788e6
commit 325f6d4ffa
1 changed files with 12 additions and 0 deletions

View File

@ -727,6 +727,18 @@ struct ArtNzs
ArtNzs()
: Packet(OpNzs, std::make_shared<nzs_data>())
{}
/**
* @brief ArtNzs and ArtVlc share the same OpCode.
* @return
*/
bool isVLC() const
{
if (!_data)
return false;
auto data = std::static_pointer_cast<nzs_data>(_data);
return data->data[0] == VLC::START_CODE;
};
};