summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-05 13:20:43 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-05 13:20:43 +0200
commit49f9edc19499a2d6538dea2634d97fc69f0d68bc (patch)
tree7edb8a3da5036517897ba51689d988a36929db2f
parent8d84cc15b9238d7c7f807f167b6bc06f844362d0 (diff)
downloadvdr-49f9edc19499a2d6538dea2634d97fc69f0d68bc.tar.gz
vdr-49f9edc19499a2d6538dea2634d97fc69f0d68bc.tar.bz2
Fixed handling transparent areas in cDvbSpuBitmap
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--dvbspu.c4
3 files changed, 5 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 22e9f6ee..ba98b1e8 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1160,6 +1160,7 @@ Marco Schlüßler <marco@lordzodiac.de>
for increasing POLLTIMEOUTS_BEFORE_DEVICECLEAR in transfer.c to 6 to avoid problems
with the larger buffer reserve
for adding support for setting the video display mode
+ for fixing handling transparent areas in cDvbSpuBitmap
Jürgen Schmitz <j.schmitz@web.de>
for reporting a bug in displaying the current channel when switching via the SVDRP
diff --git a/HISTORY b/HISTORY
index 9079a82c..71d0791d 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3484,3 +3484,4 @@ Video Disk Recorder Revision History
- Added missing text internationalization for "Starting EPG scan" (thanks to
Matthias Lötzke).
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
+- Fixed handling transparent areas in cDvbSpuBitmap (thanks to Marco Schlüßler).
diff --git a/dvbspu.c b/dvbspu.c
index 3ca780aa..5839d705 100644
--- a/dvbspu.c
+++ b/dvbspu.c
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.c 1.12 2005/02/06 09:54:51 kls Exp $
+ * $Id: dvbspu.c 1.13 2005/05/05 13:19:03 kls Exp $
*/
#include <assert.h>
@@ -143,6 +143,8 @@ bool cDvbSpuBitmap::getMinSize(const aDvbSpuPalDescr paldescr,
if (ret)
DEBUG("MinSize: (%d, %d) x (%d, %d)\n",
size.x1, size.y1, size.x2, size.y2);
+ if (size.x1 > size.x2 || size.y1 > size.y2)
+ return false;
return ret;
}