/* check if file starts with a PKT_MAP header  */
static int gxf_probe(AVProbeData *p)
/* check if file starts with a PKT_MAP header  */
static int gxf_probe(AVProbeData *p)
{0, 0, 0, 0, 1, 0xbc};
    static const uint8_t endcode[] = {0, 0, 0, 0, 0xe1, 0xe2};
    if (!memcmp(p->buf, startcode, sizeof(startcode)) &&
        !memcmp(&p->buf[16 - sizeof(endcode)], endcode, sizeof(endcode)))
        return AVPROBE_SCORE_MAX;
    return 0;
}