aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 04:42:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-26 13:29:19 +0200
commit482850992cb12a65b6754d8dee6544e7b4d2f80d (patch)
tree7de79a4afbd1aff15c162eb29fe87c0ceecb7234 /libavcodec/tests
parent2b0f29507f40db38e88ec157dcb3acaf43abce65 (diff)
downloadffmpeg-482850992cb12a65b6754d8dee6544e7b4d2f80d.tar.gz
avcodec/avcodec: Make sanity check stricter
If an AVCodec has a private class, its priv_data_size must be > 0 and at the end of a successful call to avcodec_open2() the AVCodecContext's priv_data must exist and its first element must be a pointer to said AVClass. This should not be conditional on priv_data_size being > 0 (which is tested by FATE) or on the private context having been successfully allocated (which has to have happened at that point). So remove these preconditions to make the test stricter. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/tests')
0 files changed, 0 insertions, 0 deletions