int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)

{

    ImgUtils imgutils = { &imgutils_class, log_offset, log_ctx };



    if ((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)

        return 0;



    av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", w, h);

    return AVERROR(EINVAL);

}

int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)

{

    ImgUtils imgutils = { &imgutils_class, log_offset, log_ctx };



    if ((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)

        return 0;



    av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", w, h);

    return AVERROR(EINVAL);

}

int FUNC_0(unsigned int VAR_0, unsigned int VAR_1, int VAR_2, void *VAR_3)

{

    ImgUtils imgutils = { &imgutils_class, VAR_2, VAR_3 };



    if ((int)VAR_0>0 && (int)VAR_1>0 && (VAR_0+128)*(uint64_t)(VAR_1+128) < INT_MAX/8)

        return 0;



    av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", VAR_0, VAR_1);

    return AVERROR(EINVAL);

}

int FUNC_0(unsigned int VAR_0, unsigned int VAR_1, int VAR_2, void *VAR_3)
{ ImgUtils imgutils = { &imgutils_class, VAR_2, VAR_3 }; if ((int)VAR_0>0 && (int)VAR_1>0 && (VAR_0+128)*(uint64_t)(VAR_1+128) < INT_MAX/8)
return 0; av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n", VAR_0, VAR_1); return AVERROR(EINVAL); }