[FFmpeg-devel] [PATCH] lavc/rawdec: Only use AV_PIX_FMT_PAL8 for 1 bpp video
Mats Peterson
matsp888 at yahoo.com
Sun Jan 31 22:39:53 CET 2016
On 01/31/2016 10:33 PM, Mats Peterson wrote:
> On 01/31/2016 10:31 PM, Michael Niedermayer wrote:
>>
>> If a AVI contains a palette one might argue its a paletted avi
>> either way i dont know, i dont have such a file
>> it would be needed to have real world files in that category
>> to know if treating them as pal8 is better or not
>>
An 1- 2- 4- and 8-bit AVI is palettized no matter if it contains a
palette or not. Of course it has to contain palette in order to display
it correctly, but in the case of 1 bpp I have set a default black &
white palette in raw_init_decoder() to avoid sudden surprises when
switching from using monow.
Mats
More information about the ffmpeg-devel
mailing list