static void parse_forced_key_frames(char *kf, OutputStream *ost,

                                    AVCodecContext *avctx)

{

    char *p;

    int n = 1, i;

    int64_t t;



    for (p = kf; *p; p++)

        if (*p == ',')

            n++;

    ost->forced_kf_count = n;

    ost->forced_kf_pts   = av_malloc(sizeof(*ost->forced_kf_pts) * n);

    if (!ost->forced_kf_pts) {

        av_log(NULL, AV_LOG_FATAL, "Could not allocate forced key frames array.\n");

        exit(1);

    }



    p = kf;

    for (i = 0; i < n; i++) {

        char *next = strchr(p, ',');



        if (next)

            *next++ = 0;



        t = parse_time_or_die("force_key_frames", p, 1);

        ost->forced_kf_pts[i] = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base);



        p = next;

    }

}

static void parse_forced_key_frames(char *kf, OutputStream *ost,

                                    AVCodecContext *avctx)

{

    char *p;

    int n = 1, i;

    int64_t t;



    for (p = kf; *p; p++)

        if (*p == ',')

            n++;

    ost->forced_kf_count = n;

    ost->forced_kf_pts   = av_malloc(sizeof(*ost->forced_kf_pts) * n);

    if (!ost->forced_kf_pts) {

        av_log(NULL, AV_LOG_FATAL, "Could not allocate forced key frames array.\n");

        exit(1);

    }



    p = kf;

    for (i = 0; i < n; i++) {

        char *next = strchr(p, ',');



        if (next)

            *next++ = 0;



        t = parse_time_or_die("force_key_frames", p, 1);

        ost->forced_kf_pts[i] = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base);



        p = next;

    }

}

        exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);         exit(1);
static void FUNC_0(char *VAR_0, OutputStream *VAR_1,

                                    AVCodecContext *VAR_2)

{

    char *VAR_3;

    int VAR_4 = 1, VAR_5;

    int64_t t;



    for (VAR_3 = VAR_0; *VAR_3; VAR_3++)

        if (*VAR_3 == ',')

            VAR_4++;

    VAR_1->forced_kf_count = VAR_4;

    VAR_1->forced_kf_pts   = av_malloc(sizeof(*VAR_1->forced_kf_pts) * VAR_4);

    if (!VAR_1->forced_kf_pts) {

        av_log(NULL, AV_LOG_FATAL, "Could not allocate forced key frames array.\VAR_4");

        exit(1);

    }



    VAR_3 = VAR_0;

    for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {

        char *VAR_6 = strchr(VAR_3, ',');



        if (VAR_6)

            *VAR_6++ = 0;



        t = parse_time_or_die("force_key_frames", VAR_3, 1);

        VAR_1->forced_kf_pts[VAR_5] = av_rescale_q(t, AV_TIME_BASE_Q, VAR_2->time_base);



        VAR_3 = VAR_6;

    }

}

static void FUNC_0(char *VAR_0, OutputStream *VAR_1,
AVCodecContext *VAR_2)
{ char *VAR_3; int VAR_4 = 1, VAR_5; int64_t t; for (VAR_3 = VAR_0; *VAR_3; VAR_3++) if (*VAR_3 == ',')
VAR_4++; VAR_1->forced_kf_count = VAR_4; VAR_1->forced_kf_pts   = av_malloc(sizeof(*VAR_1->forced_kf_pts) * VAR_4); if (!VAR_1->forced_kf_pts) { av_log(NULL, AV_LOG_FATAL, "Could not allocate forced key frames array.\VAR_4"); exit(1); } VAR_3 = VAR_0; for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) { char *VAR_6 = strchr(VAR_3, ','); if (VAR_6)
*VAR_6++ = 0; t = parse_time_or_die("force_key_frames", VAR_3, 1); VAR_1->forced_kf_pts[VAR_5] = av_rescale_q(t, AV_TIME_BASE_Q, VAR_2->time_base); VAR_3 = VAR_6; } }