lavc/bmp: Avoid a heap buffer overwrite for 1bpp input.