fprintf(stderr,"\nIncorrect Grab Size Supplied - Supported Sizes Are:\n"); fprintf(stderr," %dx%d  %dx%d %dx%d\n\n",
av_log(NULL, AV_LOG_ERROR, "\nIncorrect Grab Size Supplied - Supported Sizes Are:\n"); av_log(NULL, AV_LOG_ERROR, " %dx%d  %dx%d %dx%d\n\n",
static int aiw_init(VideoData *s){    int width, height;    width = s->width;    height = s->height;    if ((width == s->video_cap.maxwidth && height == s->video_cap.maxheight) ||        (width == s->video_cap.maxwidth && height == s->video_cap.maxheight*2) ||        (width == s->video_cap.maxwidth/2 && height == s->video_cap.maxheight)) {                s->deint=0;        s->halfw=0;        if (height == s->video_cap.maxheight*2) s->deint=1;        if (width == s->video_cap.maxwidth/2) s->halfw=1;    } else {        fprintf(stderr,"\nIncorrect Grab Size Supplied - Supported Sizes Are:\n");        fprintf(stderr," %dx%d  %dx%d %dx%d\n\n",                s->video_cap.maxwidth,s->video_cap.maxheight,                s->video_cap.maxwidth,s->video_cap.maxheight*2,                s->video_cap.maxwidth/2,s->video_cap.maxheight);        goto fail;    }    if (s->halfw == 0) {        s->src_mem = av_malloc(s->width*2);    } else {        s->src_mem = av_malloc(s->width*4);    }    if (!s->src_mem) goto fail;    s->lum_m4_mem = av_malloc(s->width);    if (!s->lum_m4_mem)        goto fail;    return 0; fail:    av_freep(&s->src_mem);    av_freep(&s->lum_m4_mem);    return -1;}