Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Fix a bunch of null dereference warnings in test_mpegtables.
The clang-tidy "null dereference" checker pointed out a bunch of potential null dereferences in the test_mpegtables code. The dereferences are not obvious, as they occur inside of functions from mpegdescriptors.h that have been inlined into the test code. Adding simple tests for descriptor validity, and exiting when they aren't valid, eliminates all these warnings.
- Loading branch information