diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-11 11:14:29 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-11 11:14:29 +0000 |
| commit | dad77a8d029641f8f62f2412cb844d8821615e9d (patch) | |
| tree | a392711a179e6a9c2fb9c486a68e68993d001765 /lib/dvb | |
| parent | 1f6ac2af48a6ae408108b180be92ce3a20bf6739 (diff) | |
| download | enigma2-dad77a8d029641f8f62f2412cb844d8821615e9d.tar.gz enigma2-dad77a8d029641f8f62f2412cb844d8821615e9d.zip | |
fix bug in radiotext decoder
Diffstat (limited to 'lib/dvb')
| -rw-r--r-- | lib/dvb/radiotext.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/dvb/radiotext.cpp b/lib/dvb/radiotext.cpp index 6ab2fdd8..c165907c 100644 --- a/lib/dvb/radiotext.cpp +++ b/lib/dvb/radiotext.cpp @@ -113,7 +113,16 @@ void eDVBRadioTextParser::processPESPacket(__u8 *data, int len) pos += frame_size; - int offs = protection_bit ? pos - 1 : pos - 3; +#if 0 +// eDebug("protection_bit ? %d", protection_bit); +// int offs = protection_bit ? pos - 1 : pos - 3; +// if (data[offs] != 0xFD) +// offs += 2; +// eDebug("%02x %02x %02x %02x %02x", data[offs-2], data[offs-1], data[offs], data[offs+1], data[offs+2]); +#else + int offs = pos - 1; +#endif + if (data[offs] == 0xFD) { int ancillary_len = 1 + data[offs - 1]; |
