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

auframe: skip level calculation if format is RAW #99

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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