From 9b1b6b3ce4a7968a809fc9c15eb6148d04d528b2 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 27 Aug 2013 10:22:22 +0200 Subject: Fixed handling DVB subtitle fill region codes for 2 and 8 bpp --- dvbsubtitle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dvbsubtitle.c') diff --git a/dvbsubtitle.c b/dvbsubtitle.c index 9facc860..f4958f25 100644 --- a/dvbsubtitle.c +++ b/dvbsubtitle.c @@ -7,7 +7,7 @@ * Original author: Marco Schluessler * With some input from the "subtitle plugin" by Pekka Virtanen * - * $Id: dvbsubtitle.c 2.34 2013/02/22 15:25:25 kls Exp $ + * $Id: dvbsubtitle.c 3.1 2013/08/27 10:21:05 kls Exp $ */ #include "dvbsubtitle.h" @@ -1081,9 +1081,9 @@ int cDvbSubtitleConverter::ExtractSegment(const uchar *Data, int Length, int64_t bs.SkipBits(2); // reserved if (regionFillFlag) { switch (region->Bpp()) { - case 2: region->FillRegion(region8bitPixelCode); break; + case 2: region->FillRegion(region2bitPixelCode); break; case 4: region->FillRegion(region4bitPixelCode); break; - case 8: region->FillRegion(region2bitPixelCode); break; + case 8: region->FillRegion(region8bitPixelCode); break; default: dbgregions("unknown bpp %d (%s %d)\n", region->Bpp(), __FUNCTION__, __LINE__); } } -- cgit v1.2.3