On 01/19/2012 04:22 PM, Paul B Mahol wrote:

> +#if HAVE_BIGENDIAN
> +            p->data[1][i * 4    ] = 0xFF;
> +            p->data[1][i * 4 + 1] = bytestream_get_be16(&buf) >> 8;
> +            p->data[1][i * 4 + 2] = bytestream_get_be16(&buf) >> 8;
> +            p->data[1][i * 4 + 3] = bytestream_get_be16(&buf) >> 8;
> +#else
> +            p->data[1][i * 4 + 3] = 0xFF;
> +            p->data[1][i * 4 + 2] = bytestream_get_be16(&buf) >> 8;
> +            p->data[1][i * 4 + 1] = bytestream_get_be16(&buf) >> 8;
> +            p->data[1][i * 4    ] = bytestream_get_be16(&buf) >> 8;
> +#endif


If the palette can be true 16-bit, maybe we should round here.  Or are
the low bytes always 0?

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to