Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions av/video/reformatter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ cdef class VideoReformatter:
# We want to change the colorspace/color_range transforms.
# We do that by grabbing all of the current settings, changing a
# couple, and setting them all. We need a lot of state here.
cdef const int *inv_tbl
cdef const int *tbl
cdef int *inv_tbl
cdef int *tbl
cdef int src_colorspace_range, dst_colorspace_range
cdef int brightness, contrast, saturation
cdef int ret
Expand Down Expand Up @@ -209,7 +209,7 @@ cdef class VideoReformatter:
with nogil:
lib.sws_scale(
self.ptr,
frame.ptr.data,
<const uint8_t *const *>frame.ptr.data,
frame.ptr.linesize,
0, # slice Y
frame.ptr.height,
Expand Down
6 changes: 3 additions & 3 deletions include/libswscale/swscale.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ cdef extern from "libswscale/swscale.h" nogil:

cdef int sws_scale(
SwsContext *ctx,
unsigned char **src_slice,
int *src_stride,
const unsigned char *const *src_slice,
const int *src_stride,
int src_slice_y,
int src_slice_h,
unsigned char **dst_slice,
unsigned char *const *dst_slice,
int *dst_stride,
)

Expand Down
Loading