]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
en50221 capmt: a fix for the recent memcpy move
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Dec 2017 08:56:48 +0000 (09:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Dec 2017 08:56:48 +0000 (09:56 +0100)
src/input/mpegts/en50221/en50221_capmt.c

index c0ef8395410e76095997d9ace3312afb5076bad6..9147cc1aebdff7dd08807160c630590fe1b3415d 100644 (file)
@@ -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) {