Skip to content

Commit

Permalink
Fall back to not splitting AudioFrames if AudioEncoder did not set a …
Browse files Browse the repository at this point in the history
…frame_size
  • Loading branch information
0xFelix committed Oct 16, 2017
1 parent c13a131 commit 09edead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter/EncodeFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<AudioFrame> audioFrames;
Expand Down

0 comments on commit 09edead

Please sign in to comment.