# HG changeset patch # User stefano # Date 1256912005 0 # Node ID bb26e1db5c90012db1f065319af5e5e186d546c7 # Parent b5e34617a0965b4204948b2aa0c266583d731b1f Document slice ordering assumption done by sws_scale(). diff -r b5e34617a096 -r bb26e1db5c90 libswscale/swscale.h --- a/libswscale/swscale.h Fri Oct 30 10:03:54 2009 +0000 +++ b/libswscale/swscale.h Fri Oct 30 14:13:25 2009 +0000 @@ -135,7 +135,11 @@ /** * Scales the image slice in srcSlice and puts the resulting scaled * slice in the image in dst. A slice is a sequence of consecutive - * rows in an image. Slices can be bottom to top or top to bottom. + * rows in an image. + * + * Slices have to be provided in sequential order, either in + * top-bottom or bottom-top order. If slices are provided in + * non-sequential order the behavior of the function is undefined. * * @param context the scaling context previously created with * sws_getContext()