From: Jaroslav Kysela Date: Wed, 20 Dec 2017 08:56:48 +0000 (+0100) Subject: en50221 capmt: a fix for the recent memcpy move X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b95f5188fc36df7ffe0bc7892db5eb4a0f86bb1;p=thirdparty%2Ftvheadend.git en50221 capmt: a fix for the recent memcpy move --- diff --git a/src/input/mpegts/en50221/en50221_capmt.c b/src/input/mpegts/en50221/en50221_capmt.c index c0ef83954..9147cc1ae 100644 --- a/src/input/mpegts/en50221/en50221_capmt.c +++ b/src/input/mpegts/en50221/en50221_capmt.c @@ -174,7 +174,7 @@ int en50221_capmt_build p += 5; tl -= 5; if (en50221_capmt_check_pid(s, pid)) { - memcpy(y = x, p, 3); /* stream type, PID */ + memcpy(y = x, p - 5, 3); /* stream type, PID */ x += 5; first = 1; while (l > 1) {