Skip to content

Commit 3132dfb

Browse files
committed
Core (LV::Video): Fix BMP loader not returning error despite not supporting BI_BITFIELDS.
1 parent 5a3a3c8 commit 3132dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvisual/libvisual/private/lv_video_bmp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ namespace LV {
341341
return nullptr;
342342
}
343343

344-
if (bi_compression > 3) {
344+
if (bi_compression >= 3) {
345345
visual_log (VISUAL_LOG_ERROR, "Bitmap uses an invalid or unsupported compression scheme");
346346
fp.seekg (saved_stream_pos);
347347
return nullptr;

0 commit comments

Comments
 (0)