static const uint8_t *avc_mp4_find_startcode(const uint8_t *start, const uint8_t *end, int nal_length_size)

{

    int res = 0;



    if (end - start < nal_length_size)

        return NULL;

    while (nal_length_size--)

        res = (res << 8) | *start++;



    if (start + res > end || res < 0 || start + res < start)

        return NULL;



    return start + res;

}

static const uint8_t *avc_mp4_find_startcode(const uint8_t *start, const uint8_t *end, int nal_length_size)

{

    int res = 0;



    if (end - start < nal_length_size)

        return NULL;

    while (nal_length_size--)

        res = (res << 8) | *start++;



    if (start + res > end || res < 0 || start + res < start)

        return NULL;



    return start + res;

}

    int res = 0;     if (start + res > end || res < 0 || start + res < start)
static const uint8_t *FUNC_0(const uint8_t *start, const uint8_t *end, int nal_length_size)

{

    int VAR_0 = 0;



    if (end - start < nal_length_size)

        return NULL;

    while (nal_length_size--)

        VAR_0 = (VAR_0 << 8) | *start++;



    if (start + VAR_0 > end || VAR_0 < 0 || start + VAR_0 < start)

        return NULL;



    return start + VAR_0;

}

static const uint8_t *FUNC_0(const uint8_t *start, const uint8_t *end, int nal_length_size)
{ int VAR_0 = 0; if (end - start < nal_length_size)
return NULL; while (nal_length_size--)
VAR_0 = (VAR_0 << 8) | *start++; if (start + VAR_0 > end || VAR_0 < 0 || start + VAR_0 < start)
return NULL; return start + VAR_0; }