ref: 74fed9d1f3ffaa24369691159d758f6c08edd586
parent: 58fad377cbf35e5a03d4a5953d5dfabcb75ca3a8
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Jul 13 09:18:01 EDT 2021
damn
--- a/hj264.c
+++ b/hj264.c
@@ -54,7 +54,7 @@
pu = io->yuv[1];
pv = io->yuv[2];
- for(y = 0; y < h; bgrx += w*4){
+ for(y = 0; y < h;){
for(x = 0; x < w;){
b = bgrx[0];
g = bgrx[1];
@@ -92,7 +92,7 @@
}
py += io->stride[0];
pu += io->stride[1];
- pv += io->stride[1];
+ pv += io->stride[2];
y++;
}
}