vorbisdemux: Check private context in theoras gtopts.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Mar 2012 02:43:30 +0000 (03:43 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Mar 2012 03:29:33 +0000 (04:29 +0100)
commitf927c5b753f2ec1f037ad38cb55b4407dd7a9d79
treee1721111d1b895079627b0586c9c1e61ed79286b
parentae2c33b0c28ec9dd2c78538062798f6dace6b20b
vorbisdemux: Check private context in theoras gtopts.

This prevents a null ptr dereference.
It could be checked differently but this way it should
be possible to return some data.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparseskeleton.c
libavformat/oggparsetheora.c