From: Jaroslav Kysela Date: Mon, 18 Dec 2017 08:55:37 +0000 (+0100) Subject: en50221: capmt - fix the wrong TPDU length (write), issue #4799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e06ffd87beff16103c47d6fa542df2374fca6fd3;p=thirdparty%2Ftvheadend.git en50221: capmt - fix the wrong TPDU length (write), issue #4799 --- diff --git a/src/input/mpegts/en50221/en50221.c b/src/input/mpegts/en50221/en50221.c index 295b3b7ee..41a8406cb 100644 --- a/src/input/mpegts/en50221/en50221.c +++ b/src/input/mpegts/en50221/en50221.c @@ -183,11 +183,11 @@ en50221_transport_pdu_write(en50221_transport_t *cit, buf[1] = datalen & 0x7f; hlen = 2; } else if (datalen < 0x100) { - buf[1] = 0x82; + buf[1] = 0x81; buf[2] = datalen & 0xff; hlen = 3; } else if (datalen < 0x10000) { - buf[1] = 0x83; + buf[1] = 0x82; buf[2] = datalen >> 8; buf[3] = datalen & 0xff; hlen = 4;