static int context_init(H264Context *h){

    CHECKED_ALLOCZ(h->top_borders[0], h->s.mb_width * (16+8+8) * sizeof(uint8_t))

    CHECKED_ALLOCZ(h->top_borders[1], h->s.mb_width * (16+8+8) * sizeof(uint8_t))



    return 0;

fail:

    return -1; // free_tables will clean up for us

}

static int context_init(H264Context *h){

    CHECKED_ALLOCZ(h->top_borders[0], h->s.mb_width * (16+8+8) * sizeof(uint8_t))

    CHECKED_ALLOCZ(h->top_borders[1], h->s.mb_width * (16+8+8) * sizeof(uint8_t))



    return 0;

fail:

    return -1; 

}

static int FUNC_0(H264Context *VAR_0){

    CHECKED_ALLOCZ(VAR_0->top_borders[0], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))

    CHECKED_ALLOCZ(VAR_0->top_borders[1], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))



    return 0;

fail:

    return -1; 

}

static int FUNC_0(H264Context *VAR_0){ CHECKED_ALLOCZ(VAR_0->top_borders[0], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))
CHECKED_ALLOCZ(VAR_0->top_borders[1], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))
return 0; fail:
return -1; }