]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/slice.c
Merge commit 'b4a0f172c7f116d8d329ff02f29c138a9291fd3c'
[ffmpeg] / libswscale / slice.c
index 38e12e33ecccfc1ce313b2285de65f2b5ad52aab..a7014872c4de4ab44bc6772ed79f66f9a91782ed 100644 (file)
@@ -39,7 +39,7 @@ static void free_lines(SwsSlice *s)
 }
 
 /*
- slice lines contains extra bytes for vetorial code thus @size
+ slice lines contains extra bytes for vectorial code thus @size
  is the allocated memory size and @width is the number of pixels
 */
 static int alloc_lines(SwsSlice *s, int size, int width)
@@ -149,9 +149,9 @@ int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int src
     int i = 0;
 
     const int start[4] = {lumY,
-                    chrY,
-                    chrY,
-                    lumY};
+                          chrY,
+                          chrY,
+                          lumY};
 
     const int end[4] = {lumY +lumH,
                         chrY + chrH,
@@ -159,9 +159,9 @@ int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int src
                         lumY + lumH};
 
     const uint8_t *src_[4] = {src[0] + (relative ? 0 : start[0]) * stride[0],
-                             src[1] + (relative ? 0 : start[1]) * stride[0],
-                             src[2] + (relative ? 0 : start[2]) * stride[0],
-                             src[3] + (relative ? 0 : start[3]) * stride[0]};
+                              src[1] + (relative ? 0 : start[1]) * stride[1],
+                              src[2] + (relative ? 0 : start[2]) * stride[2],
+                              src[3] + (relative ? 0 : start[3]) * stride[3]};
 
     s->width = srcW;