static int decode_copy(uint8_t *frame, int width, int height,

                       const uint8_t *src, const uint8_t *src_end)

{

    const int size = width * height;



    if (src_end - src < size)

        return -1;

    bytestream_get_buffer(&src, frame, size);

    return 0;

}

static int decode_copy(uint8_t *frame, int width, int height,

                       const uint8_t *src, const uint8_t *src_end)

{

    const int size = width * height;



    if (src_end - src < size)

        return -1;

    bytestream_get_buffer(&src, frame, size);

    return 0;

}

static int decode_copy(uint8_t *frame, int width, int height,                        const uint8_t *src, const uint8_t *src_end)     if (src_end - src < size)     bytestream_get_buffer(&src, frame, size);                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)                        const uint8_t *src, const uint8_t *src_end)
static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,

                       const uint8_t *VAR_3, const uint8_t *VAR_4)

{

    const int VAR_5 = VAR_1 * VAR_2;



    if (VAR_4 - VAR_3 < VAR_5)

        return -1;

    bytestream_get_buffer(&VAR_3, VAR_0, VAR_5);

    return 0;

}

static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,
const uint8_t *VAR_3, const uint8_t *VAR_4)
{ const int VAR_5 = VAR_1 * VAR_2; if (VAR_4 - VAR_3 < VAR_5)
return -1; bytestream_get_buffer(&VAR_3, VAR_0, VAR_5); return 0; }