diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-05 13:20:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-05 13:20:43 +0200 |
commit | 49f9edc19499a2d6538dea2634d97fc69f0d68bc (patch) | |
tree | 7edb8a3da5036517897ba51689d988a36929db2f /dvbspu.c | |
parent | 8d84cc15b9238d7c7f807f167b6bc06f844362d0 (diff) | |
download | vdr-49f9edc19499a2d6538dea2634d97fc69f0d68bc.tar.gz vdr-49f9edc19499a2d6538dea2634d97fc69f0d68bc.tar.bz2 |
Fixed handling transparent areas in cDvbSpuBitmap
Diffstat (limited to 'dvbspu.c')
-rw-r--r-- | dvbspu.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |