Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mark Harris
Opus
Commits
50d6701e
Commit
50d6701e
authored
Oct 07, 2015
by
Mark Harris
Committed by
Jean-Marc Valin
Oct 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial_example: Fix error message
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
a6595e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/trivial_example.c
doc/trivial_example.c
+3
-3
No files found.
doc/trivial_example.c
View file @
50d6701e
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment