Thank you for your replies. :) I ended up using this syntax to make the artifact go away.
b = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+0]; g = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+1]; r = f->pAVFrame->data[0][f->pAVFrame->linesize[0]*yy+xx*3+2]; I outputted the linesize[0] to 11520 which is 3*3840 The code that failed was: uint64_t src_i = (xx+(yy*src_camera_width))*3; r = f->pAVFrame->data[0][src_i+0]; g = f->pAVFrame->data[0][src_i+1]; b = f->pAVFrame->data[0][src_i+2]; When i write them out on paper they are equivalent, so I suspect it has to do with an overflowing variable. Regardless, I solved my problem and have moved on. Kind regards Jesper
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
