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
Xiph.Org
Vorbis tools
Commits
fc73dfed
Commit
fc73dfed
authored
Dec 03, 2001
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really obscure bug fix - samplesize should be used instead of hardcoded to 2.
svn path=/trunk/vorbis-tools/; revision=2410
parent
0dcdd962
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
oggenc/audio.c
oggenc/audio.c
+2
-2
No files found.
oggenc/audio.c
View file @
fc73dfed
...
...
@@ -445,8 +445,8 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
}
else
{
opt
->
total_samples_per_channel
=
(
ftell
(
in
)
-
pos
)
/
(
format
.
channels
*
2
);
wav
->
totalsamples
=
len
/
(
format
.
channels
*
2
);
opt
->
total_samples_per_channel
=
(
ftell
(
in
)
-
pos
)
/
(
format
.
channels
*
samplesize
);
wav
->
totalsamples
=
len
/
(
format
.
channels
*
samplesize
);
fseek
(
in
,
pos
,
SEEK_SET
);
}
}
...
...
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