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
674653ff
Commit
674653ff
authored
Mar 22, 2001
by
Josh Coalson
Browse files
fix bug where pos could move to before the beginning of the file
parent
10cffdd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/file_decoder.c
View file @
674653ff
...
...
@@ -453,6 +453,8 @@ bool seek_to_absolute_sample_(FLAC__FileDecoder *decoder, long filesize, uint64
}
if
(
pos
<
l
)
pos
=
l
;
if
(
pos
<
0
)
pos
=
0
;
last_frame_sample
=
this_frame_sample
;
}
}
...
...
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