diff options
author | Max Kellermann <max@duempel.org> | 2014-08-18 09:47:23 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-19 21:23:03 +0200 |
commit | 181edf4b5397ded0bb49b13a9df0a21b1806a695 (patch) | |
tree | b12c1d5fe4d6616e23208ee22f46bbf3a4111e9c /src/decoder/plugins | |
parent | dfa53cb88e0e4a102eafb73d147c03f7a73c51c9 (diff) | |
download | mpd-181edf4b5397ded0bb49b13a9df0a21b1806a695.tar.gz mpd-181edf4b5397ded0bb49b13a9df0a21b1806a695.tar.xz mpd-181edf4b5397ded0bb49b13a9df0a21b1806a695.zip |
InputStream: make offset_type unsigned
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r-- | src/decoder/plugins/OpusDecoderPlugin.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx index 8d1f75e72..2ea8e0497 100644 --- a/src/decoder/plugins/OpusDecoderPlugin.cxx +++ b/src/decoder/plugins/OpusDecoderPlugin.cxx @@ -187,8 +187,6 @@ LoadEOSPacket(InputStream &is, Decoder *decoder, int serialno, return -1; const auto old_offset = is.GetOffset(); - if (old_offset < 0) - return -1; /* create temporary Ogg objects for seeking and parsing the EOS packet */ @@ -335,7 +333,6 @@ MPDOpusDecoder::Seek(OggSyncState &oy, double where_s) assert(eos_granulepos > 0); assert(input_stream.IsSeekable()); assert(input_stream.KnownSize()); - assert(input_stream.GetOffset() >= 0); const ogg_int64_t where_granulepos(where_s * opus_sample_rate); |