Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas Daede
Vorbis tools
Commits
37b7a37d
Commit
37b7a37d
authored
Dec 08, 2001
by
Jack Moffitt
Browse files
Damnit. This patch went to the wrong branch.
svn path=/trunk/vorbis-tools/; revision=2490
parent
a93b0269
Changes
1
Hide whitespace changes
Inline
Side-by-side
oggenc/audio.c
View file @
37b7a37d
...
...
@@ -357,13 +357,13 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
return
0
;
/* Weird format chunk */
}
/* A common error is to have a
n 18-byte
format chunk
with the last two
*
bytes 0.
This is incorrect, but
sufficiently common that
we only warn
*
about
it instead of refusing
it.
*
Please, if you
have a program that's creating
these 18 byte chunks, send
*
a bug report to whoever makes it
/* A common error is to have a format chunk
that is not 16 or 18 bytes
*
in size.
This is incorrect, but
not fatal, so
we only warn
about
* it instead of refusing
to work with the file. Please, if you
* have a program that's creating
format chunks of sizes other than
*
16 or 18 bytes in size, report a bug to the author.
*/
if
(
len
!=
16
)
if
(
len
!=
16
&&
len
!=
18
)
fprintf
(
stderr
,
"Warning: INVALID format chunk in wav header.
\n
"
" Trying to read anyway (may not work)...
\n
"
);
...
...
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