diff options
| author | jelkins <jelkins@cinecert.com> | 2020-10-07 11:39:43 -0700 |
|---|---|---|
| committer | jelkins <jelkins@cinecert.com> | 2020-10-07 11:39:43 -0700 |
| commit | 064d75bd171c18a46430e0fe1b362c99159a24ba (patch) | |
| tree | 86e176a018b0e102eb1ba40926b2c84e39bb4de5 /src/Metadata.cpp | |
| parent | 7b70b206a3bd767aad3a9a3c789cff9d0e9c38f2 (diff) | |
check values for LinkedTrackID.
Diffstat (limited to 'src/Metadata.cpp')
| -rwxr-xr-x | src/Metadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Metadata.cpp b/src/Metadata.cpp index adaac11..3eedcac 100755 --- a/src/Metadata.cpp +++ b/src/Metadata.cpp @@ -1279,7 +1279,7 @@ FileDescriptor::InitFromTLVSet(TLVReader& TLVSet) { assert(m_Dict); Result_t result = GenericDescriptor::InitFromTLVSet(TLVSet); - if ( ASDCP_SUCCESS(result) ) { + if ( ASDCP_SUCCESS(result) && ( ! LinkedTrackID.empty() ) { result = TLVSet.ReadUi32(OBJ_READ_ARGS_OPT(FileDescriptor, LinkedTrackID)); LinkedTrackID.set_has_value( result == RESULT_OK ); } |
