On Wed, Jan 30, 2013 at 04:46:57PM +0100, Anton Khirnov wrote:
> The FATE sample contains some pixels with value 0, but the palette
> stored in the file contains only values from 16 up. Because the default
> and cmdutils get_buffer() initialize the data to 0x80, they appear as
> gray dots.
> After this commit they change to black dots, which is probably still
> incorrect but less visible and doesn't rely on get_buffer() initializing
> the data.
> ---
>  libavcodec/yop.c   |    3 +++
>  tests/ref/fate/yop |    6 +++---
>  2 files changed, 6 insertions(+), 3 deletions(-)

Fine with me, though I'd #include "cga_data.h" and initialise low 16 colours
to ff_cga_palette[] entries, but that's me (and result will be the same
essentially).
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to