summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-11-08 09:38:54 +0000
committerphintuka <phintuka>2011-11-08 09:38:54 +0000
commitabe2453117402d66ab5d53b8acfe606d392fe56a (patch)
tree57df2e53c462cf0e797160a7bc90965c5314d984 /tools
parent20d38a26f49cc2f7bb1d80624ad265bef5cab702 (diff)
downloadxineliboutput-abe2453117402d66ab5d53b8acfe606d392fe56a.tar.gz
xineliboutput-abe2453117402d66ab5d53b8acfe606d392fe56a.tar.bz2
Fixed bug #3390063: VDR palette can be 256 entries, not 255
Diffstat (limited to 'tools')
-rw-r--r--tools/rle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rle.c b/tools/rle.c
index a8423681..efcaf3b9 100644
--- a/tools/rle.c
+++ b/tools/rle.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: rle.c,v 1.8 2011-03-08 08:55:14 phintuka Exp $
+ * $Id: rle.c,v 1.9 2011-11-08 09:38:54 phintuka Exp $
*
*/
@@ -416,7 +416,7 @@ void rle_uncompress_argb(uint32_t *dst,
uint i, pixelcounter = 0;
uint idx = 0, line = 0;
- if (palette_entries > 255)
+ if (palette_entries > 256)
return;
rle_palette_to_argb(lut, palette, palette_entries);