]> git.sesse.net Git - ffmpeg/commit
avformat/mxfdec: Don't use wrong type of pointer
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 12 Mar 2021 11:59:47 +0000 (12:59 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 18 Mar 2021 23:41:16 +0000 (00:41 +0100)
commit9224b1f6b3b554dfc5e941bf106bed06816b328c
tree912845377ac6e3df4f91d0e84646a005a4daf135
parent5edcdfc318b62b8327565183e8f56b3f8dd2dd16
avformat/mxfdec: Don't use wrong type of pointer

If one of the two results of a ternary conditional is a pointer to void,
the type of the whole conditional operator is a pointer to void, even
when the other possible result is not a pointer to void. This loophole
in the type system has allowed mxf_read_local_tags to have a pointer of
type pointer to MXFMetadataSet that actually points to an MXFContext.

Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/mxfdec.c