static void compute_frame_duration(int *pnum, int *pden,

                                   AVFormatContext *s, AVStream *st, 

                                   AVCodecParserContext *pc, AVPacket *pkt)

{

    int frame_size;



    *pnum = 0;

    *pden = 0;

    switch(st->codec.codec_type) {

    case CODEC_TYPE_VIDEO:

        *pnum = st->codec.frame_rate_base;

        *pden = st->codec.frame_rate;

        if (pc && pc->repeat_pict) {

            *pden *= 2;

            *pnum = (*pnum) * (2 + pc->repeat_pict);

        }

        break;

    case CODEC_TYPE_AUDIO:

        frame_size = get_audio_frame_size(&st->codec, pkt->size);

        if (frame_size < 0)

            break;

        *pnum = frame_size;

        *pden = st->codec.sample_rate;

        break;

    default:

        break;

    }

}

static void compute_frame_duration(int *pnum, int *pden,

                                   AVFormatContext *s, AVStream *st, 

                                   AVCodecParserContext *pc, AVPacket *pkt)

{

    int frame_size;



    *pnum = 0;

    *pden = 0;

    switch(st->codec.codec_type) {

    case CODEC_TYPE_VIDEO:

        *pnum = st->codec.frame_rate_base;

        *pden = st->codec.frame_rate;

        if (pc && pc->repeat_pict) {

            *pden *= 2;

            *pnum = (*pnum) * (2 + pc->repeat_pict);

        }

        break;

    case CODEC_TYPE_AUDIO:

        frame_size = get_audio_frame_size(&st->codec, pkt->size);

        if (frame_size < 0)

            break;

        *pnum = frame_size;

        *pden = st->codec.sample_rate;

        break;

    default:

        break;

    }

}

static void FUNC_0(int *VAR_0, int *VAR_1,

                                   AVFormatContext *VAR_2, AVStream *VAR_3, 

                                   AVCodecParserContext *VAR_4, AVPacket *VAR_5)

{

    int VAR_6;



    *VAR_0 = 0;

    *VAR_1 = 0;

    switch(VAR_3->codec.codec_type) {

    case CODEC_TYPE_VIDEO:

        *VAR_0 = VAR_3->codec.frame_rate_base;

        *VAR_1 = VAR_3->codec.frame_rate;

        if (VAR_4 && VAR_4->repeat_pict) {

            *VAR_1 *= 2;

            *VAR_0 = (*VAR_0) * (2 + VAR_4->repeat_pict);

        }

        break;

    case CODEC_TYPE_AUDIO:

        VAR_6 = get_audio_frame_size(&VAR_3->codec, VAR_5->size);

        if (VAR_6 < 0)

            break;

        *VAR_0 = VAR_6;

        *VAR_1 = VAR_3->codec.sample_rate;

        break;

    default:

        break;

    }

}

static void FUNC_0(int *VAR_0, int *VAR_1,
AVFormatContext *VAR_2, AVStream *VAR_3,
AVCodecParserContext *VAR_4, AVPacket *VAR_5)
{ int VAR_6; *VAR_0 = 0; *VAR_1 = 0; switch(VAR_3->codec.codec_type) { case CODEC_TYPE_VIDEO:
*VAR_0 = VAR_3->codec.frame_rate_base; *VAR_1 = VAR_3->codec.frame_rate; if (VAR_4 && VAR_4->repeat_pict) { *VAR_1 *= 2; *VAR_0 = (*VAR_0) * (2 + VAR_4->repeat_pict); } break; case CODEC_TYPE_AUDIO:
VAR_6 = get_audio_frame_size(&VAR_3->codec, VAR_5->size); if (VAR_6 < 0)
break; *VAR_0 = VAR_6; *VAR_1 = VAR_3->codec.sample_rate; break; default:
break; } }