aboutsummaryrefslogtreecommitdiff
path: root/doc/trivial_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/trivial_example.c')
-rw-r--r--doc/trivial_example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/trivial_example.c b/doc/trivial_example.c
index 7a0fc56a..c65dfe01 100644
--- a/doc/trivial_example.c
+++ b/doc/trivial_example.c
@@ -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;
}