From 09edeadb824fe87804da159cb746e1236572c3d8 Mon Sep 17 00:00:00 2001 From: 0xFelix Date: Mon, 16 Oct 2017 11:05:56 +0200 Subject: [PATCH] Fall back to not splitting AudioFrames if AudioEncoder did not set a frame_size --- src/filter/EncodeFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter/EncodeFilter.cpp b/src/filter/EncodeFilter.cpp index 84b0846cb..7ea6125e8 100644 --- a/src/filter/EncodeFilter.cpp +++ b/src/filter/EncodeFilter.cpp @@ -180,7 +180,7 @@ void AudioEncodeFilter::encode(const AudioFrame& frame) f.prepend(d.leftOverAudio); } - int frameSizeEncoder = d.enc->frameSize(); + int frameSizeEncoder = d.enc->frameSize() ? d.enc->frameSize() : f.samplesPerChannel(); int frameSize = f.samplesPerChannel(); QList audioFrames;