Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
auframe: skip level calculation if format is RAW (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Oct 5, 2022
1 parent b5876ac commit a0d128f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/auframe/auframe.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ double auframe_level(struct auframe *af)
if (!af)
return AULEVEL_UNDEF;

if (af->fmt == AUFMT_RAW)
return AULEVEL_UNDEF;

if (af->level == AULEVEL_UNDEF)
af->level = aulevel_calc_dbov(af->fmt, af->sampv, af->sampc);

Expand Down

0 comments on commit a0d128f

Please sign in to comment.