diff options
author | Max Kellermann <max@duempel.org> | 2014-08-19 20:23:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-19 20:23:36 +0200 |
commit | 1a53f07d8084453d66f9c0b7bd940a1790ef7c10 (patch) | |
tree | 667e3d1bbd1fae89c703cc63cb7c2b3bb5e15378 /src/decoder/plugins/DsfDecoderPlugin.cxx | |
parent | 672f678ed61a5cfd3bcf3f8f8c521e29481d031f (diff) | |
download | mpd-1a53f07d8084453d66f9c0b7bd940a1790ef7c10.tar.gz mpd-1a53f07d8084453d66f9c0b7bd940a1790ef7c10.tar.xz mpd-1a53f07d8084453d66f9c0b7bd940a1790ef7c10.zip |
decoder/dsf: remove unnecessary ID3 offset check
If the offset is out of range, the seek will simply fail. Not a
problem.
Diffstat (limited to 'src/decoder/plugins/DsfDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/DsfDecoderPlugin.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx index 94c25247d..a48a8f321 100644 --- a/src/decoder/plugins/DsfDecoderPlugin.cxx +++ b/src/decoder/plugins/DsfDecoderPlugin.cxx @@ -171,11 +171,7 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, metadata->channels = (unsigned) dsf_fmt_chunk.channelnum; metadata->sample_rate = samplefreq; #ifdef HAVE_ID3TAG - /* metada_offset cannot be bigger then or equal to total file size */ - if (metadata_offset >= size) - metadata->id3_offset = 0; - else - metadata->id3_offset = (InputStream::offset_type)metadata_offset; + metadata->id3_offset = (InputStream::offset_type)metadata_offset; #endif /* check bits per sample format, determine if bitreverse is needed */ metadata->bitreverse = dsf_fmt_chunk.bitssample == 1; |