summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorPedro Arthur <[email protected]>2015-10-13 13:32:07 -0300
committerCarl Eugen Hoyos <[email protected]>2015-10-13 20:11:42 +0200
commitbb3b4ad46030939fbf44fb83c004ab851c55c3d3 (patch)
tree2010c47cb997c1e7fdb8a5b343eb84400bb251c2 /libswscale/swscale_internal.h
parent13d3749424813301b732e8930cf32187ac62daa9 (diff)
swscale: fix ticket #4881
When scaling only a slice of a frame the output was written always in the first lines leaving the rest of the frame black. (cherry picked from commit 5bd62a1b3c3356b84818efca3fcaf52da27a32af)
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 608cc3e6e9..5dd23efbe5 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -1012,7 +1012,8 @@ typedef struct VScalerContext
} VScalerContext;
// warp input lines in the form (src + width*i + j) to slice format (line[i][j])
-int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH);
+// relative=true means first line src[x][0] otherwise first line is src[x][lum/crh Y]
+int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative);
// Initialize scaler filter descriptor chain
int ff_init_filters(SwsContext *c);