static int mm_probe(AVProbeData *p)

{

    /* the first chunk is always the header */

    if (p->buf_size < MM_PREAMBLE_SIZE)

        return 0;

    if (AV_RL16(&p->buf[0]) != MM_TYPE_HEADER)

        return 0;

    if (AV_RL32(&p->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&p->buf[2]) != MM_HEADER_LEN_AV)

        return 0;



    /* only return half certainty since this check is a bit sketchy */

    return AVPROBE_SCORE_MAX / 2;

}

static int mm_probe(AVProbeData *p)

{

    

    if (p->buf_size < MM_PREAMBLE_SIZE)

        return 0;

    if (AV_RL16(&p->buf[0]) != MM_TYPE_HEADER)

        return 0;

    if (AV_RL32(&p->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&p->buf[2]) != MM_HEADER_LEN_AV)

        return 0;



    

    return AVPROBE_SCORE_MAX / 2;

}

static int FUNC_0(AVProbeData *VAR_0)

{

    

    if (VAR_0->buf_size < MM_PREAMBLE_SIZE)

        return 0;

    if (AV_RL16(&VAR_0->buf[0]) != MM_TYPE_HEADER)

        return 0;

    if (AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_AV)

        return 0;



    

    return AVPROBE_SCORE_MAX / 2;

}

static int FUNC_0(AVProbeData *VAR_0)
{ if (VAR_0->buf_size < MM_PREAMBLE_SIZE)
return 0; if (AV_RL16(&VAR_0->buf[0]) != MM_TYPE_HEADER)
return 0; if (AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_AV)
return 0; return AVPROBE_SCORE_MAX / 2; }