Skip to content

Commit

Permalink
Change the raise condition in resampler
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinism authored and WyattBlue committed Jan 9, 2025
1 parent 892c999 commit 355f1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av/audio/resampler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 355f1b4

Please sign in to comment.