[Scummvm-git-logs] scummvm master -> afefb386178bd34594c9ac56144ccaed1fd007a3
bluegr
bluegr at gmail.com
Mon Jun 17 22:11:24 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
afefb38617 BLADERUNNER: Replace strTag with tag2str
Commit: afefb386178bd34594c9ac56144ccaed1fd007a3
https://github.com/scummvm/scummvm/commit/afefb386178bd34594c9ac56144ccaed1fd007a3
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-06-17T23:11:20+03:00
Commit Message:
BLADERUNNER: Replace strTag with tag2str
Changed paths:
engines/bladerunner/vqa_decoder.cpp
diff --git a/engines/bladerunner/vqa_decoder.cpp b/engines/bladerunner/vqa_decoder.cpp
index e97d238..3b230ef 100644
--- a/engines/bladerunner/vqa_decoder.cpp
+++ b/engines/bladerunner/vqa_decoder.cpp
@@ -106,18 +106,6 @@ static inline uint32 roundup(uint32 v) {
return (v + 1) & ~1u;
}
-const char *strTag(uint32 tag) {
- static char s[5];
-
- sprintf(s, "%c%c%c%c",
- (tag >> 24) & 0xff,
- (tag >> 16) & 0xff,
- (tag >> 8) & 0xff,
- (tag >> 0) & 0xff);
-
- return s;
-}
-
VQADecoder::VQADecoder() {
_s = nullptr;
_frameInfo = nullptr;
@@ -191,13 +179,13 @@ bool VQADecoder::loadStream(Common::SeekableReadStream *s) {
case kMSCI: rc = readMSCI(s, chd.size); break;
case kVQHD: rc = readVQHD(s, chd.size); break;
default:
- warning("Unhandled chunk '%s'", strTag(chd.id));
+ warning("Unhandled chunk '%s'", tag2str(chd.id));
s->skip(roundup(chd.size));
rc = true;
}
if (!rc) {
- warning("failed to handle chunk %s", strTag(chd.id));
+ warning("failed to handle chunk %s", tag2str(chd.id));
return false;
}
} while (chd.id != kFINF);
@@ -264,7 +252,7 @@ void VQADecoder::readPacket(uint readFlags) {
}
if (!rc) {
- warning("VQADecoder::readPacket(): Error handling chunk %s", strTag(chd.id));
+ warning("VQADecoder::readPacket(): Error handling chunk %s", tag2str(chd.id));
return;
}
} while (chd.id != kVQFR);
@@ -364,7 +352,7 @@ bool VQADecoder::VQAVideoTrack::readVQFR(Common::SeekableReadStream *s, uint32 s
}
if (!rc) {
- error("VQADecoder::VQAVideoTrack::readVQFR(): error handling chunk %s", strTag(chd.id));
+ error("VQADecoder::VQAVideoTrack::readVQFR(): error handling chunk %s", tag2str(chd.id));
return false;
}
}
@@ -404,7 +392,7 @@ bool VQADecoder::readMSCI(Common::SeekableReadStream *s, uint32 size) {
_maxAESCChunkSize = max_size;
break;
default:
- warning("Unknown tag in MSCT: %s", strTag(tag));
+ warning("Unknown tag in MSCT: %s", tag2str(tag));
}
uint32 zero;
@@ -680,7 +668,7 @@ bool VQADecoder::VQAVideoTrack::readVQFL(Common::SeekableReadStream *s, uint32 s
}
if (!rc) {
- warning("VQFL: error handling chunk %s", strTag(chd.id));
+ warning("VQFL: error handling chunk %s", tag2str(chd.id));
return false;
}
}
More information about the Scummvm-git-logs
mailing list