Skip to content

Commit

Permalink
Mark pointer as const
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Dec 28, 2024
1 parent 8bec947 commit 892c999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av/codec/codec.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ cdef class Codec:
return self._hardware_configs
ret = []
cdef int i = 0
cdef lib.AVCodecHWConfig *ptr
cdef const lib.AVCodecHWConfig *ptr
while True:
ptr = lib.avcodec_get_hw_config(self.ptr, i)
if not ptr:
Expand Down

0 comments on commit 892c999

Please sign in to comment.