Skip to content

Commit

Permalink
SOUND: Demote WMA newFrameCount < 0 warning to a debug message
Browse files Browse the repository at this point in the history
It happens with existing game data, so it's apparently "normal".
  • Loading branch information
DrMcCoy committed Aug 18, 2018
1 parent 9bc09de commit e95edb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sound/decoders/wma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@
#include <vector>

#include "src/common/util.h"
#include "src/common/debug.h"
#include "src/common/error.h"
#include "src/common/maths.h"
#include "src/common/sinewindows.h"
#include "src/common/error.h"
#include "src/common/memreadstream.h"
#include "src/common/mdct.h"
#include "src/common/bitstream.h"
Expand Down Expand Up @@ -780,7 +781,7 @@ Common::SeekableReadStream *WMACodec::decodeSuperFrame(Common::SeekableReadStrea
// Number of frames in this superframe
int newFrameCount = bits.getBits(4) - 1;
if (newFrameCount < 0) {
warning("WMACodec::decodeSuperFrame(): newFrameCount == %d", newFrameCount);
debugC(Common::kDebugSound, 1, "WMACodec::decodeSuperFrame(): newFrameCount == %d", newFrameCount);

_resetBlockLengths = true;
_lastSuperframeLen = 0;
Expand Down

0 comments on commit e95edb9

Please sign in to comment.