Skip to content

Commit

Permalink
Fix arithmetic exception: division by zero (MediaArea#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjee21 committed Feb 9, 2025
1 parent 18aa942 commit ced1e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MediaInfo/Audio/File_Usac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5071,7 +5071,7 @@ void File_Usac::UsacSbrData(size_t nrSbrChannels, bool usacIndependencyFlag)
int64s sampling_frequency=C.sampling_frequency;
if (C.coreSbrFrameLengthIndex==4)
{
sampling_frequency=Frequency_b/2;
if (Frequency_b!=0) sampling_frequency=Frequency_b/2;
C.sbrHandler.ratio=QUAD;
}

Expand Down

0 comments on commit ced1e41

Please sign in to comment.