diff options
author | Gregory Maxwell <greg@xiph.org> | 2013-11-19 20:35:26 +0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2013-11-19 20:35:26 +0400 |
commit | 4fa2b548d42b00645f2685e8eb4d572cda18bce7 (patch) | |
tree | 79b76e3f7de8bdd8edf1853ac3bf028c38891111 /src | |
parent | d8302fc093430a342297caae7ee1906bfa6202b0 (diff) |
Validate merge argument in repacketizer_demo.
Diffstat (limited to 'src')
-rw-r--r-- | src/repacketizer_demo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/repacketizer_demo.c b/src/repacketizer_demo.c index ca8b2c7e..dc05c1b3 100644 --- a/src/repacketizer_demo.c +++ b/src/repacketizer_demo.c @@ -81,6 +81,11 @@ int main(int argc, char *argv[]) fprintf(stderr, "-merge parameter must be at least 1.\n"); return EXIT_FAILURE; } + if(merge>48) + { + fprintf(stderr, "-merge parameter must be less than 48.\n"); + return EXIT_FAILURE; + } i++; } else if (strcmp(argv[i], "-split")==0) split = 1; |