Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8574bcd4
Commit
8574bcd4
authored
Aug 23, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/dsf: compare with InputStream::GetRest() instead of ..GetSize()
parent
02cc77cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
DsfDecoderPlugin.cxx
src/decoder/plugins/DsfDecoderPlugin.cxx
+1
-4
No files found.
src/decoder/plugins/DsfDecoderPlugin.cxx
View file @
8574bcd4
...
@@ -158,11 +158,8 @@ dsf_read_metadata(Decoder *decoder, InputStream &is,
...
@@ -158,11 +158,8 @@ dsf_read_metadata(Decoder *decoder, InputStream &is,
data_size
-=
sizeof
(
data_chunk
);
data_size
-=
sizeof
(
data_chunk
);
/* data_size cannot be bigger or equal to total file size */
/* data_size cannot be bigger or equal to total file size */
if
(
is
.
KnownSize
())
{
if
(
is
.
KnownSize
()
&&
data_size
>
is
.
GetRest
())
const
offset_type
size
=
is
.
GetSize
();
if
(
data_size
>=
size
)
return
false
;
return
false
;
}
/* use the sample count from the DSF header as the upper
/* use the sample count from the DSF header as the upper
bound, because some DSF files contain junk at the end of
bound, because some DSF files contain junk at the end of
...
...
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