[FFmpeg-devel] [PATCH] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette
Mats Peterson
matsp888 at yahoo.com
Sun Feb 7 08:02:34 CET 2016
On 02/07/2016 03:26 AM, Mats Peterson wrote:
> On 02/07/2016 02:45 AM, Mats Peterson wrote:
>> The BMP code in FFmpeg handles this correctly by using pal8 exclusively
>> for 1 bpp.
>>
>
> Speaking of BMP, "ffmpeg -i 1bpp.bmp -vcodec rawvideo out.nut" will fail
> as well (since BMP correctly uses pal8), so if there ever was a
> "regression", it was there before my patch.
>
The same goes for any input file that is stored as pal8 internally.
Since nut doesn't have a pal8 mode, it will incorrectly use the RGB[15]
codec tag for some reason, but the data in the file will still be 8 bpp.
Mats
More information about the ffmpeg-devel
mailing list