Skip to content

Commit

Permalink
Remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Bultman committed Dec 3, 2024
1 parent 1f06602 commit 5950f49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,6 @@ public synchronized boolean recordSamples(int sampleRate, int audioChannels, Buf
limit((samples_in[i].position() + inputSize) * inputDepth);
}
while (true) {
// TODO: We're dropping any samples that don't fit into the sample size. We might want to pad instead.
int inputCount = (int)Math.min(samples != null ? (samples_in[0].limit() - samples_in[0].position()) / (inputChannels * inputDepth) : 0, Integer.MAX_VALUE);
int outputCount = (int)Math.min((samples_out[0].limit() - samples_out[0].position()) / (outputChannels * outputDepth), Integer.MAX_VALUE);
inputCount = Math.min(inputCount, (outputCount * sampleRate + audio_c.sample_rate() - 1) / audio_c.sample_rate());
Expand Down

0 comments on commit 5950f49

Please sign in to comment.