stream.flvconcat: Analyze tags before writing FLV header.

This makes sure we don't attempt to sync headers
in a audio only or video only stream.