dump_stream_format: fix division by 0