InputStream: make offset_type unsigned

This commit is contained in:
Max Kellermann
2014-08-18 09:47:23 +02:00
parent dfa53cb88e
commit 181edf4b53
5 changed files with 5 additions and 14 deletions

View File

@@ -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);