static int mpjpeg_read_probe(AVProbeData *p)

{

    AVIOContext *pb;

    char line[128] = { 0 };

    int ret = 0;



    pb = avio_alloc_context(p->buf, p->buf_size, 0, NULL, NULL, NULL, NULL);

    if (!pb)

        return AVERROR(ENOMEM);



    if (p->buf_size < 2 || p->buf[0] != '-' || p->buf[1] != '-')

        return 0;



    while (!pb->eof_reached) {

        ret = get_line(pb, line, sizeof(line));

        if (ret < 0)

            break;



        ret = check_content_type(line);

        if (!ret) {

            ret = AVPROBE_SCORE_MAX;

            break;

        }

    }



    av_free(pb);



    return ret;

}

static int mpjpeg_read_probe(AVProbeData *p)

{

    AVIOContext *pb;

    char line[128] = { 0 };

    int ret = 0;



    pb = avio_alloc_context(p->buf, p->buf_size, 0, NULL, NULL, NULL, NULL);

    if (!pb)

        return AVERROR(ENOMEM);



    if (p->buf_size < 2 || p->buf[0] != '-' || p->buf[1] != '-')

        return 0;



    while (!pb->eof_reached) {

        ret = get_line(pb, line, sizeof(line));

        if (ret < 0)

            break;



        ret = check_content_type(line);

        if (!ret) {

            ret = AVPROBE_SCORE_MAX;

            break;

        }

    }



    av_free(pb);



    return ret;

}

        return 0;
static int FUNC_0(AVProbeData *VAR_0)

{

    AVIOContext *pb;

    char VAR_1[128] = { 0 };

    int VAR_2 = 0;



    pb = avio_alloc_context(VAR_0->buf, VAR_0->buf_size, 0, NULL, NULL, NULL, NULL);

    if (!pb)

        return AVERROR(ENOMEM);



    if (VAR_0->buf_size < 2 || VAR_0->buf[0] != '-' || VAR_0->buf[1] != '-')

        return 0;



    while (!pb->eof_reached) {

        VAR_2 = get_line(pb, VAR_1, sizeof(VAR_1));

        if (VAR_2 < 0)

            break;



        VAR_2 = check_content_type(VAR_1);

        if (!VAR_2) {

            VAR_2 = AVPROBE_SCORE_MAX;

            break;

        }

    }



    av_free(pb);



    return VAR_2;

}

static int FUNC_0(AVProbeData *VAR_0)
{ AVIOContext *pb; char VAR_1[128] = { 0 }; int VAR_2 = 0; pb = avio_alloc_context(VAR_0->buf, VAR_0->buf_size, 0, NULL, NULL, NULL, NULL); if (!pb)
return AVERROR(ENOMEM); if (VAR_0->buf_size < 2 || VAR_0->buf[0] != '-' || VAR_0->buf[1] != '-')
return 0; while (!pb->eof_reached) { VAR_2 = get_line(pb, VAR_1, sizeof(VAR_1)); if (VAR_2 < 0)
break; VAR_2 = check_content_type(VAR_1); if (!VAR_2) { VAR_2 = AVPROBE_SCORE_MAX; break; } } av_free(pb); return VAR_2; }