Commit 77d8e7fe authored by Josh Coalson's avatar Josh Coalson

minor casting fixes

parent 95bf677e
...@@ -1750,7 +1750,7 @@ FLAC__bool read_frame_header_(FLAC__StreamDecoder *decoder) ...@@ -1750,7 +1750,7 @@ FLAC__bool read_frame_header_(FLAC__StreamDecoder *decoder)
if(decoder->private_->has_stream_info) { if(decoder->private_->has_stream_info) {
FLAC__ASSERT(decoder->private_->stream_info.data.stream_info.min_blocksize == decoder->private_->stream_info.data.stream_info.max_blocksize); FLAC__ASSERT(decoder->private_->stream_info.data.stream_info.min_blocksize == decoder->private_->stream_info.data.stream_info.max_blocksize);
decoder->private_->frame.header.number.sample_number = (FLAC__uint64)decoder->private_->stream_info.data.stream_info.min_blocksize * (FLAC__uint64)x; decoder->private_->frame.header.number.sample_number = (FLAC__uint64)decoder->private_->stream_info.data.stream_info.min_blocksize * (FLAC__uint64)x;
decoder->private_->last_block_size = (FLAC__uint64)decoder->private_->frame.header.blocksize; decoder->private_->last_block_size = decoder->private_->frame.header.blocksize;
} }
else if(blocksize_hint) { else if(blocksize_hint) {
if(decoder->private_->last_block_size) if(decoder->private_->last_block_size)
...@@ -1760,7 +1760,7 @@ FLAC__bool read_frame_header_(FLAC__StreamDecoder *decoder) ...@@ -1760,7 +1760,7 @@ FLAC__bool read_frame_header_(FLAC__StreamDecoder *decoder)
} }
else { else {
decoder->private_->frame.header.number.sample_number = (FLAC__uint64)decoder->private_->frame.header.blocksize * (FLAC__uint64)x; decoder->private_->frame.header.number.sample_number = (FLAC__uint64)decoder->private_->frame.header.blocksize * (FLAC__uint64)x;
decoder->private_->last_block_size = (FLAC__uint64)decoder->private_->frame.header.blocksize; decoder->private_->last_block_size = decoder->private_->frame.header.blocksize;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment