From 8e632157920758b49b2a32aa6fb91e68192d97f3 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sat, 28 Dec 2024 14:59:46 -0500 Subject: [PATCH] Mark pointer as const --- av/codec/codec.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/codec/codec.pyx b/av/codec/codec.pyx index 2dab166ab..73f085e8d 100644 --- a/av/codec/codec.pyx +++ b/av/codec/codec.pyx @@ -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: