InputStream: make offset_type unsigned
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user