<div dir="ltr"><div><div><div><div>Thank you for your replies. :)<br></div><div><br>I ended up using this syntax to make the artifact go away. <br><br>b = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+0];<br>g = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+1];<br>r = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+2];<br><br></div><div>I outputted the linesize[0] to 11520 which is 3*3840<br><br>The code that failed was:<br><br><span class="im">uint64_t src_i = (xx+(yy*src_camera_width))*3;<br>r = f->pAVFrame->data[0][src_i+0];<br>g = f->pAVFrame->data[0][src_i+1];<br>b = f->pAVFrame->data[0][src_i+2];</span><br></div><div><br><br></div>When i write them out on paper they are equivalent, so I suspect it has to do with an overflowing variable.<br><br></div>Regardless, I solved my problem and have moved on.<br><br></div>Kind regards<br><br></div>Jesper <br><div><div><div><div><div><br><br><br></div></div></div></div></div></div>