|
|
@@ -248,6 +248,8 @@ static int bmp_decode_frame(AVCodecContext *avctx, |
|
|
} else if (t) { |
|
|
} else if (t) { |
|
|
colors = t; |
|
|
colors = t; |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
colors = FFMIN(256, (hsize-ihsize-14) / 3); |
|
|
} |
|
|
} |
|
|
buf = buf0 + 14 + ihsize; //palette location |
|
|
buf = buf0 + 14 + ihsize; //palette location |
|
|
// OS/2 bitmap, 3 bytes per palette entry |
|
|
// OS/2 bitmap, 3 bytes per palette entry |
|
|
|