Revision bec89a84 libavcodec/common.h

View differences:

libavcodec/common.h
57 57
    { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_STRING, .defval = val, .defstr = str }
58 58
#define AVOPTION_CODEC_RCOVERRIDE(name, help, field) \
59 59
    { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_RCOVERRIDE, .defval = 0, .defstr = NULL }
60
#define AVOPTION_SUB(ptr) { .name = NULL, .sub = ptr }
60
#define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr }
61 61
#define AVOPTION_END() AVOPTION_SUB(NULL)
62 62

  
63 63
#endif /* HAVE_AV_CONFIG_H */

Also available in: Unified diff