From 16f246cd302da11b79ea59754918138a151e9d6a Mon Sep 17 00:00:00 2001 From: evilchili Date: Mon, 2 Sep 2024 09:54:11 -0700 Subject: [PATCH] fix end-of-stream bug --- src/croaker/transcoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croaker/transcoder.py b/src/croaker/transcoder.py index 46eb7fb..e3a3902 100644 --- a/src/croaker/transcoder.py +++ b/src/croaker/transcoder.py @@ -35,7 +35,7 @@ class FrameAlignedStream: def frames(self): while True: frame = self._read_one_frame() - if frame is None: + if not frame: return yield frame