This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Use os/2 palette even if it contains less than 256 entries.
Fixes 11Bios13.bmp.
tags/n2.3
Carl Eugen Hoyos
11 years ago
parent
8f6a04a279
commit
810294ce3d
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavcodec/bmp.c
+ 2
- 0
libavcodec/bmp.c
View File
@@ -248,6 +248,8 @@ static int bmp_decode_frame(AVCodecContext *avctx,
} else if (t) {
colors = t;
}
} else {
colors = FFMIN(256, (hsize-ihsize-14) / 3);
}
buf = buf0 + 14 + ihsize; //palette location
// OS/2 bitmap, 3 bytes per palette entry
Write
Preview
Loading…
Cancel
Save