Skip to content

Commit 892c999

Browse files
committed
Mark pointer as const
1 parent 8bec947 commit 892c999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

av/codec/codec.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ cdef class Codec:
214214
return self._hardware_configs
215215
ret = []
216216
cdef int i = 0
217-
cdef lib.AVCodecHWConfig *ptr
217+
cdef const lib.AVCodecHWConfig *ptr
218218
while True:
219219
ptr = lib.avcodec_get_hw_config(self.ptr, i)
220220
if not ptr:

0 commit comments

Comments
 (0)