From c627e62bae0cf5e450c1826bb9ef59925acf3698 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Wed, 30 Sep 2026 17:27:30 -0400 Subject: [PATCH] Fix #2425 --- CHANGELOG.rst | 8 ++++++++ av/about.py | 2 +- av/stream.pxd | 9 --------- av/stream.py | 5 ++++- av/stream.pyi | 3 ++- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 95f39264a..ad4b8813d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -28,6 +28,14 @@ We are operating with `semantic versioning `_. - Bug fixes (PATCH) go here. - $CHANGE by :gh-user:`mikeboers` in (:pr:`1`). + +v19.0.1 +------- + +Fixes: + + + v19.0.0 ------- diff --git a/av/about.py b/av/about.py index 0122a6fac..b27aacd80 100644 --- a/av/about.py +++ b/av/about.py @@ -1 +1 @@ -__version__ = "19.0.0" +__version__ = "19.0.1pre0" diff --git a/av/stream.pxd b/av/stream.pxd index 755d194cb..6d571a9f2 100644 --- a/av/stream.pxd +++ b/av/stream.pxd @@ -3,23 +3,14 @@ cimport libav as lib from av.codec.context cimport CodecContext from av.container.core cimport Container from av.frame cimport Frame -from av.index cimport IndexEntries from av.packet cimport Packet cdef class Stream: cdef lib.AVStream *ptr - - # Stream attributes. cdef readonly Container container cdef readonly dict metadata - - # CodecContext attributes. cdef readonly CodecContext codec_context - - cdef readonly IndexEntries index_entries - - # Private API. cdef void _init(self, Container, lib.AVStream*, CodecContext) cdef bint _is_open(self) cdef void _assert_open(self) diff --git a/av/stream.py b/av/stream.py index f5bcfa1a6..684797e83 100644 --- a/av/stream.py +++ b/av/stream.py @@ -116,7 +116,6 @@ def _init( ) -> cython.void: self.container = container self.ptr = stream - self.index_entries = wrap_index_entries(self) self.codec_context = codec_context @@ -187,6 +186,10 @@ def _finalize_for_output(self) -> cython.void: ) ) + @property + def index_entries(self): + return wrap_index_entries(self) + @property def id(self): """ diff --git a/av/stream.pyi b/av/stream.pyi index 59485a624..bbbdbbc3c 100644 --- a/av/stream.pyi +++ b/av/stream.pyi @@ -44,7 +44,8 @@ class Stream: codec: Codec codec_context: CodecContext metadata: dict[str, str] - index_entries: IndexEntries + @property + def index_entries(self) -> IndexEntries: ... id: int profiles: list[str] profile: str | None