determine if an ArtNzs is really an ArtVlc
This commit is contained in:
parent
29e7d788e6
commit
325f6d4ffa
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue