mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling DVB subtitle fill region codes for 2 and 8 bpp
This commit is contained in:
parent
c8c14e31d8
commit
9b1b6b3ce4
3
HISTORY
3
HISTORY
@ -7900,6 +7900,7 @@ Video Disk Recorder Revision History
|
|||||||
1TB (or larger) disks and use them as a RAID-1 (mirrored). That way, if one disk
|
1TB (or larger) disks and use them as a RAID-1 (mirrored). That way, if one disk
|
||||||
fails, you can replace it without data loss.
|
fails, you can replace it without data loss.
|
||||||
|
|
||||||
2013-08-26: Version 2.1.2
|
2013-08-27: Version 2.1.2
|
||||||
|
|
||||||
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
||||||
|
- Fixed handling DVB subtitle fill region codes for 2 and 8 bpp.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
||||||
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
||||||
*
|
*
|
||||||
* $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"
|
#include "dvbsubtitle.h"
|
||||||
@ -1081,9 +1081,9 @@ int cDvbSubtitleConverter::ExtractSegment(const uchar *Data, int Length, int64_t
|
|||||||
bs.SkipBits(2); // reserved
|
bs.SkipBits(2); // reserved
|
||||||
if (regionFillFlag) {
|
if (regionFillFlag) {
|
||||||
switch (region->Bpp()) {
|
switch (region->Bpp()) {
|
||||||
case 2: region->FillRegion(region8bitPixelCode); break;
|
case 2: region->FillRegion(region2bitPixelCode); break;
|
||||||
case 4: region->FillRegion(region4bitPixelCode); 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__);
|
default: dbgregions("unknown bpp %d (%s %d)\n", region->Bpp(), __FUNCTION__, __LINE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user