diff --git a/av/audio/frame.pyx b/av/audio/frame.pyx index ac3638230..1225f8de2 100644 --- a/av/audio/frame.pyx +++ b/av/audio/frame.pyx @@ -94,7 +94,7 @@ cdef class AudioFrame(Frame): def __repr__(self): return ( - f"" + return f"av.{self.__class__.__name__} pts={self.pts} at 0x{id(self):x}>" cdef _copy_internal_attributes(self, Frame source, bint data_layout=True): """Mimic another frame.""" - self.index = source.index self._time_base = source._time_base lib.av_frame_copy_props(self.ptr, source.ptr) if data_layout: diff --git a/av/video/frame.pyx b/av/video/frame.pyx index 6ff982491..e64eb8573 100644 --- a/av/video/frame.pyx +++ b/av/video/frame.pyx @@ -124,8 +124,8 @@ cdef class VideoFrame(Frame): def __repr__(self): return ( - f"" + f"" ) @property diff --git a/include/libavcodec/avcodec.pxd b/include/libavcodec/avcodec.pxd index 16d88a473..cc11a5e9b 100644 --- a/include/libavcodec/avcodec.pxd +++ b/include/libavcodec/avcodec.pxd @@ -174,8 +174,6 @@ cdef extern from "libavcodec/avcodec.h" nogil: int global_quality int compression_level - int frame_number - int qmin int qmax int rc_max_rate diff --git a/tests/test_codec_context.py b/tests/test_codec_context.py index d30401f4e..59a10a297 100644 --- a/tests/test_codec_context.py +++ b/tests/test_codec_context.py @@ -96,17 +96,6 @@ def test_decoder_gop_size(self): "Using VideoCodecContext.gop_size for decoders is deprecated.", ) - def test_frame_index(self): - container = av.open(fate_suite("h264/interlaced_crop.mp4")) - stream = container.streams[0] - for frame in container.decode(stream): - with warnings.catch_warnings(record=True) as captured: - self.assertIsInstance(frame.index, int) - self.assertEqual( - captured[0].message.args[0], - "Using `frame.index` is deprecated.", - ) - def test_decoder_timebase(self): ctx = av.codec.Codec("h264", "r").create()