From 355f1b47cc78467e1907fb7d1305f081496875df Mon Sep 17 00:00:00 2001 From: Kim Minjong Date: Thu, 9 Jan 2025 14:25:48 +0900 Subject: [PATCH] Change the raise condition in resampler --- av/audio/resampler.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/audio/resampler.pyx b/av/audio/resampler.pyx index c46ed8475..69d790bad 100644 --- a/av/audio/resampler.pyx +++ b/av/audio/resampler.pyx @@ -95,7 +95,7 @@ cdef class AudioResampler: if self.frame_size > 0: self.graph.set_audio_frame_size(self.frame_size) - elif frame is not None: + if frame is not None: if ( frame.format.sample_fmt != self.template.format.sample_fmt or frame.layout != self.template.layout or