<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div>/**</div><div> * Look for an option in an object. Consider only options which</div><div> * have all the specified flags set.</div><div> *</div><div> * @param[in] obj A pointer to a struct whose first element is a</div><div> *                pointer to an AVClass.</div><div> *                Alternatively a double pointer to an AVClass, if</div><div> *                AV_OPT_SEARCH_FAKE_OBJ search flag is set.</div><div> * @param[in] name The name of the option to look for.</div><div> * @param[in] unit When searching for named constants, name of the unit</div><div> *                 it belongs to.</div><div> * @param opt_flags Find only options with all the specified flags set (AV_OPT_FLAG).</div><div> * @param search_flags A combination of AV_OPT_SEARCH_*.</div><div> *</div><div> * @return A pointer to the option found, or NULL if no option</div><div> *         was found.</div><div> *</div><div> * @note Options found with AV_OPT_SEARCH_CHILDREN flag may not be settable</div><div> * directly with av_set_string3(). Use special calls which take an options</div><div> * AVDictionary (e.g. avformat_open_input()) to set options found with this</div><div> * flag.</div><div> */</div><div>const AVOption *av_opt_find(void *obj, const char *name, const char *unit,</div><div>                            int opt_flags, int search_flags);</div><div><br></div><div><br></div><div>I don't get the unit and opt_flags parameter, let's say I want to get width from an ACCodecContext, how do I do it?</div><div><br></div><div>const AVOption *options = av_opt_find(codecCtx, option, NULL, NULL, NULL);</div>                                       </div></body>
</html>