Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Feb 28, 2022
1 parent 0a2d33f commit ffea12e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/C++/Core/Ap4DescriptorFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream& stream,
descriptor = new AP4_UnknownDescriptor(stream, tag, header_size, payload_size);
break;
}
} else {
stream.Seek(offset);
return AP4_ERROR_INVALID_FORMAT;
}

// skip to the end of the descriptor
Expand Down

0 comments on commit ffea12e

Please sign in to comment.