Skip to content

Commit

Permalink
Remove clipped samples counter.
Browse files Browse the repository at this point in the history
Not really useful since the previous commit because clipping is now
detected by decoder.
  • Loading branch information
foo86 committed Nov 9, 2015
1 parent 59335fc commit a9888b6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dcadec.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static void signal_handler(int sig)

int main(int argc, char **argv)
{
int flags = DCADEC_FLAG_STRICT | DCADEC_FLAG_DONT_CLIP;
int flags = DCADEC_FLAG_STRICT;
int wave_flags = 0;
bool parse_only = false;
bool no_progress = false;
Expand All @@ -191,11 +191,9 @@ int main(int argc, char **argv)
switch (opt) {
case '2':
flags |= DCADEC_FLAG_KEEP_DMIX_2CH;
flags &= ~DCADEC_FLAG_DONT_CLIP;
break;
case '6':
flags |= DCADEC_FLAG_KEEP_DMIX_6CH;
flags &= ~DCADEC_FLAG_DONT_CLIP;
break;
case 'b':
flags |= DCADEC_FLAG_CORE_BIT_EXACT;
Expand All @@ -211,7 +209,6 @@ int main(int argc, char **argv)
return 0;
case 'l':
flags &= ~DCADEC_FLAG_STRICT;
wave_flags |= DCADEC_WAVEOUT_FLAG_CLIP;
break;
case 'm':
flags |= DCADEC_FLAG_NATIVE_LAYOUT;
Expand Down Expand Up @@ -314,7 +311,6 @@ int main(int argc, char **argv)

uint32_t ndelayframes = 0;
uint64_t npcmsamples = UINT64_MAX;
uint64_t nclippedsamples = 0;
uint64_t nskippedframes = 0;
uint64_t nlossyframes = 0;

Expand Down Expand Up @@ -382,7 +378,6 @@ int main(int argc, char **argv)
}

npcmsamples -= nsamples;
nclippedsamples += ret;
}

next_packet:
Expand Down Expand Up @@ -420,8 +415,6 @@ int main(int argc, char **argv)
fprintf(stderr, "Interrupted.\n");
else if (ret == 0)
fprintf(stderr, "Completed.\n");
if (nclippedsamples)
fprintf(stderr, "*** %" PRIu64 " samples clipped ***\n", nclippedsamples);
if (nskippedframes)
fprintf(stderr, "*** %" PRIu64 " frames skipped ***\n", nskippedframes);
if (nlossyframes > 1)
Expand Down

0 comments on commit a9888b6

Please sign in to comment.