On 08/10/15 13:00, Vittorio Giovara wrote:
> + * Lossless codec, data stored in tiles, with optional delfate compression.
Deflate.
> + *
> + * Header contains the number of tiles in a frame with the tile coordinates,
> + * and it can be deflated or not. Similarly, pixel data comes after the
> header
> + * and a variable size value, and it can be deflated or just raw.
> +typedef struct RsccContext {
> + GetByteContext gbc;
> + AVFrame *reference;
> +
> + /* zlib interation */
integration ?
> + uint8_t *inflated_buf;
> + uLongf inflated_size;
> +} RsccContext;
> + /* Read number of tiles, and allocate the array */
> + tiles_nb = bytestream2_get_le16(gbc);
> + tiles = av_malloc(sizeof(Tile) * tiles_nb);
maybe alloc_array here.
The rest seems ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel