diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-05 13:59:03 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-05 13:59:03 +0200 |
commit | 0f10c8824c780cdab960aa432297f8bb34dcf769 (patch) | |
tree | 23dafca0c5b662a4d3e6250e961e1db7069c0469 /mtd.c | |
parent | c5277df361f49093bbf9874e2d2abdcdeee3e630 (diff) | |
download | vdr-0f10c8824c780cdab960aa432297f8bb34dcf769.tar.gz vdr-0f10c8824c780cdab960aa432297f8bb34dcf769.tar.bz2 |
Fixed mapping SIDs in MTD
Diffstat (limited to 'mtd.c')
-rw-r--r-- | mtd.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: mtd.c 1.12 2017/10/31 12:16:39 kls Exp $ + * $Id: mtd.c 1.13 2019/05/05 13:56:46 kls Exp $ */ #include "mtd.h" @@ -224,7 +224,10 @@ void cMtdMapper::Clear(void) void MtdMapSid(uchar *p, cMtdMapper *MtdMapper) { - Poke13(p, MtdMapper->RealToUniqSid(Peek13(p))); + uint16_t RealSid = p[0] << 8 | p[1]; + uint16_t UniqSid = MtdMapper->RealToUniqSid(RealSid); + p[0] = UniqSid >> 8; + p[1] = UniqSid & 0xff; } void MtdMapPid(uchar *p, cMtdMapper *MtdMapper) |