Skip to content
Snippets Groups Projects
Commit c7e921a5 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

avopt: Check whether the object actually has got an AVClass


AVIOContext has got an av_class member that only gets set if
opening the context using avio_open2, but not if allocating a
custom IO context. A caller that wants to read AVOptions from
an AVIOContext (recursively using AV_OPT_SEARCH_CHILDREN) may
not know if the AVIOContext actually has got a class set or not.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent b7e6da98
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment