Skip to content
Snippets Groups Projects
Commit 50d6701e authored by Mark Harris's avatar Mark Harris Committed by Jean-Marc Valin
Browse files

trivial_example: Fix error message

parent a6595e62
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ int main(int argc, char **argv)
fin = fopen(inFile, "r");
if (fin==NULL)
{
fprintf(stderr, "failed to open file: %s\n", strerror(errno));
fprintf(stderr, "failed to open input file: %s\n", strerror(errno));
return EXIT_FAILURE;
}
......@@ -104,7 +104,7 @@ int main(int argc, char **argv)
fout = fopen(outFile, "w");
if (fout==NULL)
{
fprintf(stderr, "failed to open file: %s\n", strerror(errno));
fprintf(stderr, "failed to open output file: %s\n", strerror(errno));
return EXIT_FAILURE;
}
......@@ -138,7 +138,7 @@ int main(int argc, char **argv)
frame_size = opus_decode(decoder, cbits, nbBytes, out, MAX_FRAME_SIZE, 0);
if (frame_size<0)
{
fprintf(stderr, "decoder failed: %s\n", opus_strerror(err));
fprintf(stderr, "decoder failed: %s\n", opus_strerror(frame_size));
return EXIT_FAILURE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment