AVRational av_get_q(void *obj, const char *name, const AVOption **o_out)

{

    int64_t intnum=1;

    double num=1;

    int den=1;



    av_get_number(obj, name, o_out, &num, &den, &intnum);

    if (num == 1.0 && (int)intnum == intnum)

        return (AVRational){intnum, den};

    else

        return av_d2q(num*intnum/den, 1<<24);

}

AVRational av_get_q(void *obj, const char *name, const AVOption **o_out)

{

    int64_t intnum=1;

    double num=1;

    int den=1;



    av_get_number(obj, name, o_out, &num, &den, &intnum);

    if (num == 1.0 && (int)intnum == intnum)

        return (AVRational){intnum, den};

    else

        return av_d2q(num*intnum/den, 1<<24);

}

    av_get_number(obj, name, o_out, &num, &den, &intnum);     av_get_number(obj, name, o_out, &num, &den, &intnum);     av_get_number(obj, name, o_out, &num, &den, &intnum);
AVRational FUNC_0(void *obj, const char *name, const AVOption **o_out)

{

    int64_t intnum=1;

    double VAR_0=1;

    int VAR_1=1;



    av_get_number(obj, name, o_out, &VAR_0, &VAR_1, &intnum);

    if (VAR_0 == 1.0 && (int)intnum == intnum)

        return (AVRational){intnum, VAR_1};

    else

        return av_d2q(VAR_0*intnum/VAR_1, 1<<24);

}

AVRational FUNC_0(void *obj, const char *name, const AVOption **o_out)
{ int64_t intnum=1; double VAR_0=1; int VAR_1=1; av_get_number(obj, name, o_out, &VAR_0, &VAR_1, &intnum); if (VAR_0 == 1.0 && (int)intnum == intnum)
return (AVRational){intnum, VAR_1}; else
return av_d2q(VAR_0*intnum/VAR_1, 1<<24); }