From 181edf4b5397ded0bb49b13a9df0a21b1806a695 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 18 Aug 2014 09:47:23 +0200 Subject: InputStream: make offset_type unsigned --- src/decoder/plugins/OpusDecoderPlugin.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/decoder/plugins/OpusDecoderPlugin.cxx') 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); -- cgit v1.2.3