Skip to content

Commit

Permalink
Removing unused variable (Codacy suggestion)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Mar 12, 2023
1 parent 45c273b commit bf0f809
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/FrameMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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;
Expand Down

0 comments on commit bf0f809

Please sign in to comment.