You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removing unused variable (Codacy suggestion)
This commit is contained in:
@@ -542,7 +542,6 @@ TEST_CASE( "Distribute samples", "[libopenshot][framemapper]" ) {
|
||||
map.Open();
|
||||
|
||||
// Loop through samples, and verify FrameMapper didn't mess up individual sample values
|
||||
int num_samples = 0;
|
||||
for (int frame_index = 1; frame_index <= (map.info.fps.ToInt() * num_seconds); frame_index++) {
|
||||
int sample_count = map.GetFrame(frame_index)->GetAudioSamplesCount();
|
||||
for (int sample_index = 0; sample_index < sample_count; sample_index++) {
|
||||
@@ -555,8 +554,6 @@ TEST_CASE( "Distribute samples", "[libopenshot][framemapper]" ) {
|
||||
float mapped_value = map.GetFrame(frame_index)->GetAudioSample(0, sample_index, 1.0);
|
||||
CHECK(predicted_value == Approx(mapped_value).margin(0.001));
|
||||
}
|
||||
// Increment sample value
|
||||
num_samples += map.GetFrame(frame_index)->GetAudioSamplesCount();
|
||||
}
|
||||
|
||||
float clip_position = 3.77;
|
||||
|
||||
Reference in New Issue
Block a user