static void display_picref(AVFilterBufferRef *picref, AVRational time_base)

{

    int x, y;

    uint8_t *p0, *p;

    int64_t delay;



    if (picref->pts != AV_NOPTS_VALUE) {

        if (last_pts != AV_NOPTS_VALUE) {

            /* sleep roughly the right amount of time;

             * usleep is in microseconds, just like AV_TIME_BASE. */

            delay = av_rescale_q(picref->pts - last_pts,

                                 time_base, AV_TIME_BASE_Q);

            if (delay > 0 && delay < 1000000)

                usleep(delay);

        }

        last_pts = picref->pts;

    }



    /* Trivial ASCII grayscale display. */

    p0 = picref->data[0];

    puts("\033c");

    for (y = 0; y < picref->video->h; y++) {

        p = p0;

        for (x = 0; x < picref->video->w; x++)

            putchar(" .-+#"[*(p++) / 52]);

        putchar('\n');

        p0 += picref->linesize[0];

    }

    fflush(stdout);

}

static void display_picref(AVFilterBufferRef *picref, AVRational time_base)

{

    int x, y;

    uint8_t *p0, *p;

    int64_t delay;



    if (picref->pts != AV_NOPTS_VALUE) {

        if (last_pts != AV_NOPTS_VALUE) {

            



            delay = av_rescale_q(picref->pts - last_pts,

                                 time_base, AV_TIME_BASE_Q);

            if (delay > 0 && delay < 1000000)

                usleep(delay);

        }

        last_pts = picref->pts;

    }



    

    p0 = picref->data[0];

    puts("\033c");

    for (y = 0; y < picref->video->h; y++) {

        p = p0;

        for (x = 0; x < picref->video->w; x++)

            putchar(" .-+#"[*(p++) / 52]);

        putchar('\n');

        p0 += picref->linesize[0];

    }

    fflush(stdout);

}

static void display_picref(AVFilterBufferRef *picref, AVRational time_base)     if (picref->pts != AV_NOPTS_VALUE) {             delay = av_rescale_q(picref->pts - last_pts,         last_pts = picref->pts;     p0 = picref->data[0];     for (y = 0; y < picref->video->h; y++) {         for (x = 0; x < picref->video->w; x++)         p0 += picref->linesize[0];
static void FUNC_0(AVFilterBufferRef *VAR_0, AVRational VAR_1)

{

    int VAR_2, VAR_3;

    uint8_t *p0, *p;

    int64_t delay;



    if (VAR_0->pts != AV_NOPTS_VALUE) {

        if (last_pts != AV_NOPTS_VALUE) {

            



            delay = av_rescale_q(VAR_0->pts - last_pts,

                                 VAR_1, AV_TIME_BASE_Q);

            if (delay > 0 && delay < 1000000)

                usleep(delay);

        }

        last_pts = VAR_0->pts;

    }



    

    p0 = VAR_0->data[0];

    puts("\033c");

    for (VAR_3 = 0; VAR_3 < VAR_0->video->h; VAR_3++) {

        p = p0;

        for (VAR_2 = 0; VAR_2 < VAR_0->video->w; VAR_2++)

            putchar(" .-+#"[*(p++) / 52]);

        putchar('\n');

        p0 += VAR_0->linesize[0];

    }

    fflush(stdout);

}

static void FUNC_0(AVFilterBufferRef *VAR_0, AVRational VAR_1)
{ int VAR_2, VAR_3; uint8_t *p0, *p; int64_t delay; if (VAR_0->pts != AV_NOPTS_VALUE) { if (last_pts != AV_NOPTS_VALUE) { delay = av_rescale_q(VAR_0->pts - last_pts,
VAR_1, AV_TIME_BASE_Q); if (delay > 0 && delay < 1000000)
usleep(delay); } last_pts = VAR_0->pts; } p0 = VAR_0->data[0]; puts("\033c"); for (VAR_3 = 0; VAR_3 < VAR_0->video->h; VAR_3++) { p = p0; for (VAR_2 = 0; VAR_2 < VAR_0->video->w; VAR_2++) putchar(" .-+#"[*(p++) / 52]); putchar('\n'); p0 += VAR_0->linesize[0]; } fflush(stdout); }