Commit 6916e56d authored by Tristan Matthews's avatar Tristan Matthews

doc: avoid segfault in samplenc

parent 6e04bfa8
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment