ic->class = av_format_context_class;
ic->av_class = &av_format_context_class;
AVFormatContext *av_alloc_format_context(void){    AVFormatContext *ic;    ic = av_mallocz(sizeof(AVFormatContext));    if (!ic) return ic;    ic->class = av_format_context_class;    return ic;}