Skip to content

Commit

Permalink
Merge pull request xbmc#25708 from CrystalP/fix-AEDataFormat-usage
Browse files Browse the repository at this point in the history
[AE] use correct format enum values for silence generation
  • Loading branch information
fritsch authored Sep 6, 2024
2 parents 2b6306b + fec0240 commit 4048fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Utils/AEUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@ void CAEUtil::GenerateSilence(AEDataFormat format,

switch (format)
{
case AV_SAMPLE_FMT_U8:
case AV_SAMPLE_FMT_U8P:
case AE_FMT_U8:
case AE_FMT_U8P:
memset(buffer, 0x80, dataLength);
break;

Expand Down

0 comments on commit 4048fa0

Please sign in to comment.