Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
0bea5fb9
Commit
0bea5fb9
authored
Aug 31, 2015
by
Erik de Castro Lopo
Browse files
flac/encode.c: Fix undefinoed behaviour
parent
3982865e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/flac/encode.c
View file @
0bea5fb9
...
...
@@ -2432,7 +2432,7 @@ FLAC__bool format_input(FLAC__int32 *dest[], unsigned wide_samples, FLAC__bool i
unsigned
b
;
for
(
b
=
sample
=
wide_sample
=
0
;
wide_sample
<
wide_samples
;
wide_sample
++
)
for
(
channel
=
0
;
channel
<
channels
;
channel
++
,
sample
++
)
{
FLAC__
int32
t
;
u
int32
_t
t
;
t
=
ubuffer
.
s8
[
b
++
];
t
<<=
8
;
t
|=
ubuffer
.
u8
[
b
++
];
t
<<=
8
;
t
|=
ubuffer
.
u8
[
b
++
];
...
...
Write
Preview
Supports
Markdown
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