void av_set_pts_info(AVStream *s, int pts_wrap_bits,

                     unsigned int pts_num, unsigned int pts_den)

{

    unsigned int gcd= av_gcd(pts_num, pts_den);

    s->pts_wrap_bits = pts_wrap_bits;

    s->time_base.num = pts_num/gcd;

    s->time_base.den = pts_den/gcd;



    if(gcd>1)

        av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", s->index, gcd);

}

void av_set_pts_info(AVStream *s, int pts_wrap_bits,

                     unsigned int pts_num, unsigned int pts_den)

{

    unsigned int gcd= av_gcd(pts_num, pts_den);

    s->pts_wrap_bits = pts_wrap_bits;

    s->time_base.num = pts_num/gcd;

    s->time_base.den = pts_den/gcd;



    if(gcd>1)

        av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", s->index, gcd);

}

void FUNC_0(AVStream *VAR_0, int VAR_1,

                     unsigned int VAR_2, unsigned int VAR_3)

{

    unsigned int VAR_4= av_gcd(VAR_2, VAR_3);

    VAR_0->VAR_1 = VAR_1;

    VAR_0->time_base.num = VAR_2/VAR_4;

    VAR_0->time_base.den = VAR_3/VAR_4;



    if(VAR_4>1)

        av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", VAR_0->index, VAR_4);

}

void FUNC_0(AVStream *VAR_0, int VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{ unsigned int VAR_4= av_gcd(VAR_2, VAR_3); VAR_0->VAR_1 = VAR_1; VAR_0->time_base.num = VAR_2/VAR_4; VAR_0->time_base.den = VAR_3/VAR_4; if(VAR_4>1)
av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", VAR_0->index, VAR_4); }