access_output/srt: fix signedness warning
Fix comparison of integer expressions of different signedness (size_t vs int). Since the result is assigned to an int (chunk_size), explicitly convert size_t to int.
Also move the call to block_BytestreamRemaining() out of the __MIN() macro, to avoid evaluating it twice.