avformat/oggenc: Check segments_count for headers too