We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3132dfb commit 17dcf87Copy full SHA for 17dcf87
libvisual/libvisual/private/lv_video_bmp.cpp
@@ -286,6 +286,8 @@ namespace LV {
286
fp.read (reinterpret_cast<char*> (&bf_bits), 4);
287
bf_bits = VISUAL_ENDIAN_LEI32 (bf_bits);
288
289
+ auto dib_header_pos = fp.tellg ();
290
+
291
/* Read the info structure size */
292
fp.read (reinterpret_cast<char*> (&bi_size), 4);
293
bi_size = VISUAL_ENDIAN_LEI32 (bi_size);
@@ -347,6 +349,8 @@ namespace LV {
347
349
return nullptr;
348
350
}
351
352
+ fp.seekg (dib_header_pos + std::streampos {bi_size}, std::ios::beg);
353
354
/* Load the palette */
355
if (bi_bitcount < 24) {
356
if (bi_clrused == 0) {
0 commit comments