Index: webrtc/modules/audio_coding/codecs/g722/test/testG722.cc |
diff --git a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc |
index 6d0c4322e6d7e7cc83f46ec6f36aa26c444f7092..9b2f54cc4916caf61d291a35f2a25773926ea937 100644 |
--- a/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc |
+++ b/webrtc/modules/audio_coding/codecs/g722/test/testG722.cc |
@@ -83,6 +83,10 @@ int main(int argc, char* argv[]) |
/* Get frame length */ |
framelength = atoi(argv[1]); |
+ if (framelength < 0) { |
+ printf(" G.722: Invalid framelength %d.\n", framelength); |
+ exit(1); |
+ } |
/* Get Input and Output files */ |
sscanf(argv[2], "%s", inname); |