Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/sampleenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/sampleenc.c b/doc/sampleenc.c
index a0ec8b6..b6a0636 100644
--- a/doc/sampleenc.c
+++ b/doc/sampleenc.c
@@ -24,6 +24,9 @@ int main(int argc, char **argv)
tmp=8;
speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);
+ if (argc < 2)
+ return 1;
+
inFile = argv[1];
fin = fopen(inFile, "r");