From 995ee82f643e5daa1ed079007d9934dbaef923b1 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Fri, 4 Jun 2021 20:20:47 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index b765624..0026b3c 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -25,13 +25,14 @@ void pixel( pkt_t pkt=din.read(); count_streams++; - if(p_count==0){ - count = 0; - flag=true; - } + if(count == position || count == position+1 || count == position+2){ pkt.data -= 1; p_count--; + if(p_count==0){ + count = 0; + flag=true; + } } else if(!flag){ -- GitLab