Make error reporting more detailed

In an attempt to help Kenny locate the evil Dr. Deo.

BUG=webrtc:7307

Review-Url: https://codereview.webrtc.org/2732193006
Cr-Commit-Position: refs/heads/master@{#17135}
This commit is contained in:
kwiberg
2017-03-09 02:08:28 -08:00
committed by Commit bot
parent a17ec85b5f
commit 551e984851

View File

@ -755,7 +755,11 @@ int main(int argc, char* argv[])
/* Error check */
if (err < 0 || declen < 0 || FL != static_cast<size_t>(declen)) {
errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst);
printf("\nError in decode_B/or getFrameLen: %d.\n", errtype);
printf(
"\nError %d in ReadFrameLen (%s), Decode (%s), with FL %zu and "
"declen %d.\n",
errtype, err < 0 ? "yes" : "no", declen < 0 ? "yes" : "no", FL,
declen);
}
prevFrameSize = static_cast<size_t>(declen/480);