int n = sizeof(sizes) / sizeof(SizeEntry);
int n = sizeof(frame_abvs) / sizeof(AbvEntry);
int parse_image_size(int *width_ptr, int *height_ptr, const char *str){    int i;    int n = sizeof(sizes) / sizeof(SizeEntry);    const char *p;    int frame_width = 0, frame_height = 0;    for(i=0;i<n;i++) {        if (!strcmp(sizes[i].str, str)) {            frame_width = sizes[i].width;            frame_height = sizes[i].height;            break;        }    }    if (i == n) {        p = str;        frame_width = strtol(p, (char **)&p, 10);        if (*p)            p++;        frame_height = strtol(p, (char **)&p, 10);    }    if (frame_width <= 0 || frame_height <= 0)        return -1;    *width_ptr = frame_width;    *height_ptr = frame_height;    return 0;}