We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc0b94 commit 7f0fe24Copy full SHA for 7f0fe24
2 files changed
av/video/reformatter.pyx
@@ -209,7 +209,7 @@ cdef class VideoReformatter:
209
with nogil:
210
lib.sws_scale(
211
self.ptr,
212
- frame.ptr.data,
+ <const uint8_t *const *>frame.ptr.data,
213
frame.ptr.linesize,
214
0, # slice Y
215
frame.ptr.height,
include/libswscale/swscale.pxd
@@ -49,11 +49,11 @@ cdef extern from "libswscale/swscale.h" nogil:
49
50
cdef int sws_scale(
51
SwsContext *ctx,
52
- unsigned char **src_slice,
53
- int *src_stride,
+ const unsigned char *const *src_slice,
+ const int *src_stride,
54
int src_slice_y,
55
int src_slice_h,
56
- unsigned char **dst_slice,
+ unsigned char *const *dst_slice,
57
int *dst_stride,
58
)
59
0 commit comments